diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-08-29 13:30:21 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-08-29 13:30:21 +0300 |
commit | 63f40b94a97843ea65483840b801739a6662c303 (patch) | |
tree | 8a3b1f76eaf98ddba997e568db0a94d354e858e0 /setup.py | |
parent | a5c6376add40f2762a3753b2915684a0990ba31e (diff) | |
download | obnam-63f40b94a97843ea65483840b801739a6662c303.tar.gz |
Run pylint in ./check -n
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -235,6 +235,7 @@ class Check(Command): def run_nitpick_checks(self): self.check_with_pep8() + self.check_with_pylint() if os.path.exists('.git'): sources = self.find_all_source_files() self.check_sources_for_nitpicks(sources) @@ -245,6 +246,11 @@ class Check(Command): def check_with_pep8(self): cliapp.runcmd(['pep8', 'obnamlib'], stdout=None, stderr=None) + def check_with_pylint(self): + cliapp.runcmd( + ['pylint', '--rcfile=pylint.conf', 'obnamlib'], + stdout=None, stderr=None) + def check_sources_for_nitpicks(self, sources): cliapp.runcmd(['./nitpicker'] + sources, stdout=None, stderr=None) |