2017-04-10 20:55:25 +00:00
|
|
|
[flake8]
|
|
|
|
ignore =
|
2021-11-22 23:36:44 +00:00
|
|
|
# - W605 - invalid escape sequence
|
2020-06-11 09:46:36 +00:00
|
|
|
W605,
|
2017-04-10 20:55:25 +00:00
|
|
|
# - E501 - line too long (82 characters)
|
2022-05-20 15:45:04 +00:00
|
|
|
E501,
|
2021-11-22 23:36:44 +00:00
|
|
|
# - E722 - do not use bare except
|
|
|
|
E722,
|
2019-06-13 12:16:27 +00:00
|
|
|
# - C901 - function is too complex
|
|
|
|
C901,
|
2021-11-22 23:37:17 +00:00
|
|
|
# - N802 - function name should be lowercase
|
|
|
|
# TODO (In the future, we should conform to this!)
|
2020-11-12 10:53:04 +00:00
|
|
|
N802,
|
2021-02-03 13:51:00 +00:00
|
|
|
# - N806 - variable should be lowercase
|
|
|
|
N806,
|
2021-11-22 23:36:44 +00:00
|
|
|
# - N812 - lowercase imported as non-lowercase
|
2020-11-12 10:53:04 +00:00
|
|
|
N812,
|
2022-06-01 15:37:39 +00:00
|
|
|
# - D202 - No blank lines allowed after function docstring
|
|
|
|
D202,
|
2022-05-15 23:20:04 +00:00
|
|
|
# - D415 - First line should end with a period, question mark, or exclamation point
|
|
|
|
D415,
|
2022-06-05 22:56:52 +00:00
|
|
|
# - B009 - Do not call getattr with a constant attribute value
|
|
|
|
B009
|
2022-05-19 01:28:18 +00:00
|
|
|
exclude = .git,__pycache__,*/migrations/*,*/lib/*,*/bin/*,*/media/*,*/static/*,InvenTree/plugins/*
|
2022-06-01 15:37:39 +00:00
|
|
|
per-file-ignores =
|
|
|
|
# Do not enforce docstring on __init__
|
|
|
|
__init__.py: D104
|
2019-04-25 11:09:02 +00:00
|
|
|
max-complexity = 20
|
2022-05-15 23:20:04 +00:00
|
|
|
docstring-convention=google
|
2021-08-19 22:35:25 +00:00
|
|
|
|
|
|
|
[coverage:run]
|
|
|
|
source = ./InvenTree
|
2022-05-15 23:12:19 +00:00
|
|
|
|
|
|
|
[isort]
|
|
|
|
src_paths=InvenTree
|
|
|
|
skip_glob =*/migrations/*.py
|
|
|
|
known_django=django
|
|
|
|
sections=FUTURE, STDLIB, DJANGO, THIRDPARTY, FIRSTPARTY, LOCALFOLDER
|