aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2019-09-25 22:25:42 -0700
committerBryan Newbold <bnewbold@archive.org>2019-09-25 22:25:42 -0700
commit67670169d0779217cc393fac254d3fa1e8c1706c (patch)
tree71c02537628891295889d5976f0ecfff0d880121 /python
parentd632719af83f3ac7a80233c714f2801762d3825d (diff)
downloadsandcrawler-67670169d0779217cc393fac254d3fa1e8c1706c.tar.gz
sandcrawler-67670169d0779217cc393fac254d3fa1e8c1706c.zip
pylint as part of pytest; update lint config
Diffstat (limited to 'python')
-rw-r--r--python/.pylintrc6
-rw-r--r--python/pytest.ini12
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