File tree Expand file tree Collapse file tree 5 files changed +43
-13
lines changed Expand file tree Collapse file tree 5 files changed +43
-13
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- black==24.3.0
21cachetools
32click==8.0.4
4- flake8-isort
5- flake8
6- flynt~=0.69.0
73invoke==2.2.0
84mock
5+ numpy>=1.24.0
96packaging>=20.4
107pytest
118pytest-asyncio>=0.23.0,<0.24.0
129pytest-cov
1310pytest-profiling
1411pytest-timeout
12+ ruff==0.6.2
1513ujson>=4.2.0
1614uvloop
1715vulture>=2.3.0
1816wheel>=0.30.0
19- numpy>=1.24.0
Original file line number Diff line number Diff line change 1515from cryptography .hazmat .primitives .hashes import SHA1 , Hash
1616from cryptography .hazmat .primitives .serialization import Encoding , PublicFormat
1717from cryptography .x509 import ocsp
18+
1819from redis .exceptions import AuthorizationError , ConnectionError
1920
2021
Original file line number Diff line number Diff line change 1+ line-length = 88
2+ exclude = [
3+ " *.egg-info" ,
4+ " *.pyc" ,
5+ " .git" ,
6+ " .venv*" ,
7+ " .venv*" ,
8+ " build" ,
9+ " dist" ,
10+ " docker" ,
11+ " docs/*" ,
12+ " doctests/*" ,
13+ " tasks.py" ,
14+ " venv*" ,
15+ " whitelist.py" ,
16+ ]
17+ [lint ]
18+ ignore = [
19+ " E501" ,
20+ " E741" ,
21+ " F405" ,
22+ " N801" ,
23+ " N802" ,
24+ " N803" ,
25+ " N806" ,
26+ " N815" ,
27+ " N818" ,
28+ ]
29+ extend-select = [
30+ " E" ,
31+ " F" ,
32+ " FLY" ,
33+ " I" ,
34+ " N" ,
35+ " W" ,
36+ ]
37+ [lint .per-file-ignores ]
38+ "redis/commands/search/indexDefinition.py" = [" N999" ]
39+ "tests/*" = [" I" ]
Original file line number Diff line number Diff line change @@ -27,11 +27,9 @@ def build_docs(c):
2727@task
2828def linters (c ):
2929 """Run code linters"""
30- run ("flake8 tests redis" )
30+ run ("ruff check tests redis" )
3131 run ("black --target-version py37 --check --diff tests redis" )
32- run ("isort --check-only --diff tests redis" )
3332 run ("vulture redis whitelist.py --min-confidence 80" )
34- run ("flynt --fail-on-change --dry-run tests redis" )
3533
3634
3735@task
You can’t perform that action at this time.
0 commit comments