summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-07-24 21:33:05 +0300
committerLars Wirzenius <liw@liw.fi>2016-07-24 21:33:05 +0300
commit2ab9dfd554d2b49bc7df4711c5fb633dd3a92ccf (patch)
tree46a5a0e28a2949eb4348114c5169ec58633700c1
parent3ade692af1daf4b60af748f7ed35933ec36d5575 (diff)
downloadcliapp-2ab9dfd554d2b49bc7df4711c5fb633dd3a92ccf.tar.gz
Silence pylint warnings
Disable the ones that I find pointless.
-rw-r--r--Makefile3
-rw-r--r--example.py3
-rw-r--r--example3.py3
-rw-r--r--pylint.conf2
4 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7bbb787..40bb735 100644
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,8 @@ check:
python -m CoverageTestRunner --ignore-missing-from=without-tests
rm -f .coverage
pep8 cliapp
- if command -v pylint && pylint --version | grep '^pylint [1-9]'; \
+ if command -v pylint --rcfile=pylint.conf > /dev/null && \
+ pylint --version --rcfile=pylint.conf | grep -q '^pylint [1-9]'; \
then \
PYTHONPATH=. pylint --rcfile=pylint.conf \
cliapp *.py test-plugins/*.py; \
diff --git a/example.py b/example.py
index fe282be..3eaf996 100644
--- a/example.py
+++ b/example.py
@@ -22,9 +22,10 @@ This implements an fgrep-like utility.
'''
-import cliapp
import logging
+import cliapp
+
class ExampleApp(cliapp.Application):
diff --git a/example3.py b/example3.py
index 163231d..ea61ea2 100644
--- a/example3.py
+++ b/example3.py
@@ -22,9 +22,10 @@ Demonstrate the compute_setting_values method.
'''
-import cliapp
import urlparse
+import cliapp
+
class ExampleApp(cliapp.Application):
diff --git a/pylint.conf b/pylint.conf
index b36b2aa..4da28ea 100644
--- a/pylint.conf
+++ b/pylint.conf
@@ -11,6 +11,7 @@ disable=
missing-docstring,
no-self-use,
protected-access,
+ redefined-variable-type,
star-args,
too-few-public-methods,
too-many-arguments,
@@ -19,6 +20,7 @@ disable=
too-many-locals,
too-many-public-methods,
too-many-statements,
+ unidiomatic-typecheck,
unused-argument
[REPORTS]