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 97
97
# but it's useful to run them with tox too,
98
98
# to ensure the tox env works as expected
99
99
- name : Formatting with Black + isort and code style with flake8
100
- python : ' 3.7 '
100
+ python : ' 3.10 '
101
101
arch : x64
102
102
os : ubuntu-latest
103
103
toxenv : lint
Original file line number Diff line number Diff line change 4
4
hooks :
5
5
- id : black
6
6
- 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
8
8
hooks :
9
9
- id : isort
10
10
- 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
12
12
hooks :
13
13
- id : flake8
14
14
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
17
17
18
18
ci :
19
19
# 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 .
44
44
hash -r # This resets shell PATH cache, not necessary on Windows
45
45
```
46
46
47
+ > ** Note**
48
+ > You'll need Python 3.8 or higher to install all requirements listed in
49
+ > test-requirements.txt
50
+
47
51
### Running tests
48
52
49
53
Running 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 = '''
28
28
'''
29
29
30
30
[tool .isort ]
31
+ py_version = 37
31
32
profile = " black"
32
33
line_length = 99
33
34
combine_as_imports = true
Original file line number Diff line number Diff line change 3
3
attrs>=18.0
4
4
black==23.3.0 # must match version in .pre-commit-config.yaml
5
5
filelock>=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
10
10
lxml>=4.9.1; (python_version<'3.11' or sys_platform!='win32') and python_version<'3.12'
11
11
psutil>=4.0
12
12
# 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 =
40
40
41
41
[testenv:lint]
42
42
description = check the code style
43
+ skip_install = true
43
44
commands =
44
45
flake8 {posargs}
45
46
black --check --diff --color .
You can’t perform that action at this time.
0 commit comments