Skip to content

Commit 9c1676f

Browse files
authored
Backport PR #41462: CI: Fix changed flake8 error message after upgrade (#41462) (#41478)
1 parent 1f96b6b commit 9c1676f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ repos:
44
hooks:
55
- id: black
66
- repo: https://gitlab.com/pycqa/flake8
7-
rev: 3.8.4
7+
rev: 3.9.2
88
hooks:
99
- id: flake8
1010
additional_dependencies: [flake8-comprehensions>=3.1.0]

environment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dependencies:
2020
# code checks
2121
- black=20.8b1
2222
- cpplint
23-
- flake8
23+
- flake8=3.9.2
2424
- flake8-comprehensions>=3.1.0 # used by flake8, linting of unnecessary comprehensions
2525
- isort>=5.2.1 # check that imports are in the right order
2626
- mypy=0.782

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ asv
88
cython>=0.29.21
99
black==20.8b1
1010
cpplint
11-
flake8
11+
flake8==3.9.2
1212
flake8-comprehensions>=3.1.0
1313
isort>=5.2.1
1414
mypy==0.782

scripts/tests/test_validate_docstrings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def test_bad_class(self, capsys):
165165
"indentation_is_not_a_multiple_of_four",
166166
# with flake8 3.9.0, the message ends with four spaces,
167167
# whereas in earlier versions, it ended with "four"
168-
("flake8 error: E111 indentation is not a multiple of ",),
168+
("flake8 error: E111 indentation is not a multiple of 4",),
169169
),
170170
(
171171
"BadDocstrings",

0 commit comments

Comments
 (0)