Skip to content

Commit 8293f40

Browse files
gvanrossumilevkivskyi
authored andcommitted
Make .flake8 not a symlink. (#3280)
This is so there are no symlinks in the mypy repo itself. However there are some in the typeshed repo. See #3222
1 parent 54868be commit 8293f40

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

test-data/.flake8

Lines changed: 0 additions & 1 deletion
This file was deleted.

test-data/.flake8

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Some PEP8 deviations are considered irrelevant to stub files:
2+
# (error counts as of 2016-12-19)
3+
# 17381 E704 multiple statements on one line (def)
4+
# 11840 E301 expected 1 blank line
5+
# 7467 E302 expected 2 blank lines
6+
# 1772 E501 line too long
7+
# 1487 F401 imported but unused
8+
# 1248 E701 multiple statements on one line (colon)
9+
# 427 F811 redefinition
10+
# 356 E305 expected 2 blank lines
11+
12+
# Nice-to-haves ignored for now
13+
# 152 E128 continuation line under-indented for visual indent
14+
# 43 E127 continuation line over-indented for visual indent
15+
16+
[flake8]
17+
ignore = F401, F811, E127, E128, E301, E302, E305, E501, E701, E704, B303
18+
# We are checking with Python 3 but many of the stubs are Python 2 stubs.
19+
# A nice future improvement would be to provide separate .flake8
20+
# configurations for Python 2 and Python 3 files.
21+
builtins = StandardError,apply,basestring,buffer,cmp,coerce,execfile,file,intern,long,raw_input,reduce,reload,unichr,unicode,xrange
22+
exclude = .venv*,@*

0 commit comments

Comments
 (0)