Skip to content

Commit 84e3d36

Browse files
committed
Add compatibility with Flake8 6.0.0
1 parent 71ac99b commit 84e3d36

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

.flake8

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
[flake8]
22
max-line-length=88
33
ignore=
4-
E203, # Whitespace before ‘:’
5-
W503, # Line break before binary operator
6-
ANN101, # Missing type annotation for self in method
7-
ANN102, # Missing type annotation for cls in classmethod
8-
E741, # Allow variable names I, O and l (but I and O still prevented by pylint)
9-
ANN401, # Allow using the Any type hint
10-
E501, # Too long lines, handled by Pylint
4+
# Missing type annotation for self in method
5+
ANN101,
6+
# Missing type annotation for cls in classmethod
7+
ANN102,
8+
# Allow using the Any type hint
9+
ANN401,
10+
# Whitespace before ‘:’
11+
E203,
12+
# Similar to Pylint line-too-long but Pylint can ignore string literals
13+
E501,
14+
# Allow variable names I, O and l (but I and O still prevented by pylint)
15+
E741,
16+
# Allow not prefixing fixtures that do not return anything with '_'
17+
PT004,
18+
# Line break before binary operator
19+
W503,
1120
exclude=
1221
.git,
1322
__pycache__,

flake8_plus/plugin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def add_options(option_manager: OptionManager) -> None: # pragma: no cover
5555
"""Add custom configuration option(s) to flake8."""
5656
option_manager.add_option(
5757
"--blanks-before-imports",
58-
type="int",
58+
type=int,
5959
metavar="n",
6060
default=defaults.BLANKS_BEFORE_IMPORTS,
6161
parse_from_config=True,
@@ -65,7 +65,7 @@ def add_options(option_manager: OptionManager) -> None: # pragma: no cover
6565

6666
option_manager.add_option(
6767
"--blanks-before-return",
68-
type="int",
68+
type=int,
6969
metavar="n",
7070
default=defaults.BLANKS_BEFORE_RETURN,
7171
parse_from_config=True,
@@ -75,7 +75,7 @@ def add_options(option_manager: OptionManager) -> None: # pragma: no cover
7575

7676
option_manager.add_option(
7777
"--blanks-before-except",
78-
type="int",
78+
type=int,
7979
metavar="n",
8080
default=defaults.BLANKS_BEFORE_EXCEPT,
8181
parse_from_config=True,

0 commit comments

Comments
 (0)