-
Notifications
You must be signed in to change notification settings - Fork 375
/
.flake8
28 lines (28 loc) · 971 Bytes
/
.flake8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
[flake8]
max-line-length = 120
application-import-names = dmoj,judge,django_ace
import-order-style = pycharm
enable-extensions = G
ignore =
# line break occurred after a binary operator
W504,
# allow only generator_stop and annotations future imports
FI10,FI11,FI12,FI13,FI14,FI15,FI16,FI17,FI18,FI55,FI58,
# missing trailing comma in Python 2 only
C814,
per-file-ignores =
# F401: unused imports, ignore in all __init__.py
# F403: import *
./*/__init__.py:F401,F403
# F405: name comes from import *
./judge/management/commands/runmoss.py:F403,F405
# E501: line too long, ignore in migrations
./judge/migrations/*.py:E501
# E303: too many blank lines
# PyCharm likes to have double lines between class/def in an if statement.
./judge/widgets/pagedown.py:E303
exclude =
# belongs to the user
./dmoj/local_settings.py,
# is actually a fragment to be included by settings.py
./.ci.settings.py,