diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/.pylintrc | 6 | ||||
-rw-r--r-- | python/pytest.ini | 12 |
2 files changed, 17 insertions, 1 deletions
diff --git a/python/.pylintrc b/python/.pylintrc index 83c7e50..80e203d 100644 --- a/python/.pylintrc +++ b/python/.pylintrc @@ -1,5 +1,6 @@ [MESSAGES CONTROL] -disable=C0323,W0142,C0301,C0103,C0111,E0213,C0302,C0203,W0703,R0201,W0223,bad-continuation,arguments-differ,unidiomatic-typecheck,len-as-condition,consider-using-enumerate,too-many-return-statements,too-many-branches,bare-except +# TODO: should re-enable some of these +disable=C0323,W0142,C0301,C0103,C0111,E0213,C0302,C0203,W0703,R0201,W0223,bad-continuation,arguments-differ,unidiomatic-typecheck,unused-wildcard-import,no-member,cyclic-import,too-few-public-methods,wildcard-import,too-many-locals,too-many-ancestors,unused-import [REPORTS] output-format=colorized @@ -8,3 +9,6 @@ include-ids=yes [MISCELLANEOUS] # List of note tags to take in consideration, separated by a comma. notes=FIXME,XXX,DELETEME + +[TYPECHECK] +ignored-modules=responses diff --git a/python/pytest.ini b/python/pytest.ini index 0a5e921..61c9351 100644 --- a/python/pytest.ini +++ b/python/pytest.ini @@ -1,8 +1,20 @@ [pytest] +ignore = setup.py + # allow imports from files in current directory python_paths = . # search for 'test_*' functions in all python files, not just under tests python_files = *.py + +addopts = --pylint --pylint-rcfile=.pylintrc --pylint-error-types=EF --pylint-jobs=4 + +# these are internal to raven (sentry client) and misaka (Markdown client) +filterwarnings = + ignore:.*common_exception_handling.*StopIteration:PendingDeprecationWarning + ignore:passing extensions and flags as constants is deprecated:DeprecationWarning + ignore:.*deprecated and will be removed in Werkzeug 1.0.*:DeprecationWarning + +log_level = INFO |