Skip to content

Commit f96ea9b

Browse files
committed
Add flake8-pyi to lint stub files by default and relax forward ref rules
1 parent 24cc197 commit f96ea9b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.flake8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[flake8]
2+
select = C90,E,F,W,Y0
23
ignore = E402,E731,W503,W504,E252
34
exclude = .git,__pycache__,build,dist,.eggs,.github,.local,.venv*
45
per-file-ignores = *.pyi: F401, F403, F405, F811, E127, E128, E203, E266, E301, E302, E305, E501, E701, E704, E741, B303, W503, W504

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
# (example breakage: https://gitlab.com/pycqa/flake8/issues/427)
3535
'pycodestyle~=2.7.0',
3636
'flake8~=3.9.2',
37+
'flake8-pyi>=22.1.0',
3738
'uvloop>=0.15.3; platform_system != "Windows" and python_version >= "3.7"',
3839
'mypy>=0.931'
3940
]

0 commit comments

Comments
 (0)