mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
Merge pull request #2351 from matmair/matmair/issue2335
Respect rule W293
This commit is contained in:
commit
91cd76b55f
@ -2,8 +2,7 @@
|
||||
Pull rendered copies of the templated
|
||||
"""
|
||||
|
||||
from django.http import response
|
||||
from django.test import TestCase, testcases
|
||||
from django.test import TestCase
|
||||
from django.contrib.auth import get_user_model
|
||||
|
||||
import os
|
||||
|
20
setup.cfg
20
setup.cfg
@ -1,26 +1,22 @@
|
||||
[flake8]
|
||||
ignore =
|
||||
# - W293 - blank lines contain whitespace
|
||||
W293,
|
||||
# - W605 - invalid escape sequence
|
||||
W605,
|
||||
# - E501 - line too long (82 characters)
|
||||
E501, E722,
|
||||
E501,
|
||||
# - E722 - do not use bare except
|
||||
E722,
|
||||
# - C901 - function is too complex
|
||||
C901,
|
||||
# - N802 - function name should be lowercase (In the future, we should conform to this!)
|
||||
# - N802 - function name should be lowercase
|
||||
# TODO (In the future, we should conform to this!)
|
||||
N802,
|
||||
# - N806 - variable should be lowercase
|
||||
N806,
|
||||
# - N812 - lowercase imported as non-lowercase
|
||||
N812,
|
||||
exclude = .git,__pycache__,*/migrations/*,*/lib/*,*/bin/*,*/media/*,*/static/*,*ci_*.py*
|
||||
exclude = .git,__pycache__,*/migrations/*,*/lib/*,*/bin/*,*/media/*,*/static/*
|
||||
max-complexity = 20
|
||||
|
||||
[coverage:run]
|
||||
source = ./InvenTree
|
||||
omit =
|
||||
InvenTree/manage.py
|
||||
InvenTree/setup.py
|
||||
InvenTree/InvenTree/middleware.py
|
||||
InvenTree/InvenTree/utils.py
|
||||
InvenTree/InvenTree/wsgi.py
|
||||
InvenTree/users/apps.py
|
||||
|
Loading…
x
Reference in New Issue
Block a user