online-judge/.flake8
Tudor Brindus c126f07fe7 Revert "Completely remove Pagedown" and "Switch all Pagedown editors to Martor"
This reverts commits:
- 2035e606f3
- ce1196f74f

Since they do not interact well with dark mode.
2023-12-25 12:17:56 -05:00

29 lines
971 B
INI

[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,