forked from WeblateOrg/weblate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
38 lines (36 loc) · 1.51 KB
/
setup.cfg
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
29
30
31
32
33
34
35
36
37
38
[flake8]
max-complexity = 16
select = E,W1,W2,W3,W504,W505,W6,B
enable-extensions = B,C,D,DJ,F,G,I,M,N,R,SF
# Should be fixed:
# D10 - we are missing many docstrings
# D20* - wrong docstring formatting
# D40* - many strings need rephrasing
# DJ04 - use underscores in URLs
# DJ05 - namespace in URLs include
# False positives:
# R504 - see https://github.com/Afonasev/flake8-return/issues/3
# SF01 - see https://github.com/Korijn/flake8-self/issues/3
ignore = DJ04,DJ05,R504,D10,D200,D202,D204,D205,D209,D400,D401,SF01
exclude = settings.py,.git,data,data-test,.venv*,build,node_modules,scripts/iso-codes
max-line-length = 88
per-file-ignores =
docs/conf.py:E800
weblate/langdata/languages.py:E501
weblate/settings_dev.py:F403,F405
weblate/settings_*.py:F405
weblate/settings_example.py:E800
weblate/settings_docker.py:E800
weblate/*/migrations/*.py:C405,E501,N806,DJ01,DJ02
[pycodestyle]
select = E,W1,W2,W3,W504,W505,W6
exclude = migrations,settings.py,settings_test.py,.git,data,data-test,settings_test_nose.py,docs,.venv*,build,node_modules
max-line-length = 88
[isort]
multi_line_output = 3
include_trailing_comma = True
force_grid_wrap = 0
use_parentheses = True
line_length = 88
project = weblate
known_third_party = django,translate,translation_finder,zeep,boto3,selenium,botocore,social_core,cairo,gi,PIL,social_django,html2text,celery_batches,celery,crispy_forms,httpretty,requests,openpyxl,whoosh,rest_framework,filelock,defusedxml,lxml,appconf,six,dateutil,user_agents,numba,sentry_sdk,misaka