Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7d4f6c6

Browse files
authored
Merge pull request#1681 from EliahKagan/more-flake8
Drop unneeded flake8 suppressions
2 parentse894d3a +1a8f210 commit7d4f6c6

File tree

2 files changed

+10
-24
lines changed

2 files changed

+10
-24
lines changed

‎.flake8

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,26 @@
11
[flake8]
2+
23
show-source = True
3-
count= True
4+
count= True
45
statistics = True
5-
# E265 = comment blocks like @{ section, which it can't handle
6+
67
# E266 = too many leading '#' for block comment
78
# E731 = do not assign a lambda expression, use a def
8-
# W293 = Blank line contains whitespace
9-
# W504 = Line break after operator
10-
# E704 = multiple statements in one line - used for @override
119
# TC002 = move third party import to TYPE_CHECKING
12-
# ANN = flake8-annotations
1310
# TC, TC2 = flake8-type-checking
14-
# D = flake8-docstrings
1511

1612
# select = C,E,F,W ANN, TC, TC2 # to enable code. Disabled if not listed, including builtin codes
1713
enable-extensions = TC, TC2# only needed for extensions not enabled by default
1814

19-
ignore = E265,E266,E731,E704,
20-
W293, W504,
21-
ANN0 ANN1 ANN2,
22-
TC002,
23-
TC0, TC1, TC2
24-
# B,
25-
A,
26-
D,
27-
RST, RST3
15+
ignore = E266, E731
2816

29-
exclude = .tox,.venv,build,dist,doc,git/ext/
17+
exclude = .tox,.venv,build,dist,doc,git/ext/
3018

3119
rst-roles =# for flake8-RST-docstrings
32-
attr,class,func,meth,mod,obj,ref,term,var# used by sphinx
20+
attr,class,func,meth,mod,obj,ref,term,var# used by sphinx
3321

3422
min-python-version = 3.7.0
3523

3624
# for `black` compatibility
3725
max-line-length = 120
38-
extend-ignore = E203,W503
26+
extend-ignore = E203,W503

‎.pre-commit-config.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@ repos:
44
hooks:
55
-id:flake8
66
additional_dependencies:
7-
[
8-
flake8-bugbear==23.9.16,
9-
flake8-comprehensions==3.14.0,
10-
flake8-typing-imports==1.14.0,
11-
]
7+
-flake8-bugbear==23.9.16
8+
-flake8-comprehensions==3.14.0
9+
-flake8-typing-imports==1.14.0
1210
exclude:^doc|^git/ext/
1311

1412
-repo:https://github.com/pre-commit/pre-commit-hooks

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp