online-judge/.flake8

29 lines
971 B
Plaintext
Raw Normal View History

[flake8]
max-line-length = 120
2020-04-14 10:52:36 +08:00
application-import-names = dmoj,judge,django_ace
2019-09-29 04:49:54 +08:00
import-order-style = pycharm
2019-09-29 05:27:10 +08:00
enable-extensions = G
ignore =
2022-12-27 02:10:31 +08:00
# line break occurred after a binary operator
W504,
2019-09-29 04:54:16 +08:00
# allow only generator_stop and annotations future imports
FI10,FI11,FI12,FI13,FI14,FI15,FI16,FI17,FI18,FI55,FI58,
2022-12-27 02:10:31 +08:00
# missing trailing comma in Python 2 only
C814,
per-file-ignores =
# F401: unused imports, ignore in all __init__.py
2019-09-29 04:32:12 +08:00
# 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 =
2022-12-27 02:10:31 +08:00
# belongs to the user
./dmoj/local_settings.py,
# is actually a fragment to be included by settings.py
./.ci.settings.py,