File tree Expand file tree Collapse file tree 6 files changed +15
-9
lines changed Expand file tree Collapse file tree 6 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 9797 # but it's useful to run them with tox too,
9898 # to ensure the tox env works as expected
9999 - name : Formatting with Black + isort and code style with flake8
100- python : ' 3.7 '
100+ python : ' 3.10 '
101101 arch : x64
102102 os : ubuntu-latest
103103 toxenv : lint
Original file line number Diff line number Diff line change 44 hooks :
55 - id : black
66 - repo : https://github.com/pycqa/isort
7- rev : 5.11.5 # must match test-requirements.txt (cannot use version 5.12 until python 3.7 support is dropped)
7+ rev : 5.12.0 # must match test-requirements.txt
88 hooks :
99 - id : isort
1010 - repo : https://github.com/pycqa/flake8
11- rev : 5 .0.4 # must match test-requirements.txt (cannot use version 6 until python 3.7 support is dropped)
11+ rev : 6 .0.0 # must match test-requirements.txt
1212 hooks :
1313 - id : flake8
1414 additional_dependencies :
15- - flake8-bugbear==22.12.6 # must match test-requirements.txt
16- - flake8-noqa==1.3.0 # must match test-requirements.txt
15+ - flake8-bugbear==23.3.23 # must match test-requirements.txt
16+ - flake8-noqa==1.3.1 # must match test-requirements.txt
1717
1818ci :
1919 # We run flake8 as part of our GitHub Actions suite in CI
Original file line number Diff line number Diff line change @@ -44,6 +44,10 @@ python3 -m pip install -e .
4444hash -r # This resets shell PATH cache, not necessary on Windows
4545```
4646
47+ > ** Note**
48+ > You'll need Python 3.8 or higher to install all requirements listed in
49+ > test-requirements.txt
50+
4751### Running tests
4852
4953Running the full test suite can take a while, and usually isn't necessary when
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ force-exclude = '''
2828'''
2929
3030[tool .isort ]
31+ py_version = 37
3132profile = " black"
3233line_length = 99
3334combine_as_imports = true
Original file line number Diff line number Diff line change 33attrs>=18.0
44black==23.3.0 # must match version in .pre-commit-config.yaml
55filelock>=3.3.0
6- flake8==5 .0.4 # must match version in .pre-commit-config.yaml
7- flake8-bugbear==22.12.6 # must match version in .pre-commit-config.yaml
8- flake8-noqa==1.3.0 # must match version in .pre-commit-config.yaml
9- isort[colors]==5.11.5 # must match version in .pre-commit-config.yaml
6+ flake8==6 .0.0; python_version >= "3.8" # must match version in .pre-commit-config.yaml
7+ flake8-bugbear==23.3.23; python_version >= "3.8" # must match version in .pre-commit-config.yaml
8+ flake8-noqa==1.3.1; python_version >= "3.8" # must match version in .pre-commit-config.yaml
9+ isort[colors]==5.12.0; python_version >= "3.8" # must match version in .pre-commit-config.yaml
1010lxml>=4.9.1; (python_version<'3.11' or sys_platform!='win32') and python_version<'3.12'
1111psutil>=4.0
1212# pytest 6.2.3 does not support Python 3.10
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ commands =
4040
4141[testenv:lint]
4242description = check the code style
43+ skip_install = true
4344commands =
4445 flake8 {posargs}
4546 black --check --diff --color .
You can’t perform that action at this time.
0 commit comments