File tree Expand file tree Collapse file tree 2 files changed +19
-10
lines changed
Expand file tree Collapse file tree 2 files changed +19
-10
lines changed Original file line number Diff line number Diff line change 11[flake8]
22max-line-length =88
33ignore =
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,
1120exclude =
1221 .git,
1322 __pycache__,
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments