Skip to content

Commit

Permalink
tox: call pylint for whole repo
Browse files Browse the repository at this point in the history
In addition to checking the whole repo, this fixes the
import-error check.

Signed-off-by: Zac Medico <zmedico@gentoo.org>
  • Loading branch information
zmedico committed Aug 5, 2020
1 parent 7b3896c commit bbb3434
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
1 change: 1 addition & 0 deletions pylintrc
Expand Up @@ -14,6 +14,7 @@
disable=all
enable=
cyclic-import,
import-error,
import-self,
misplaced-future,
missing-final-newline,
Expand Down
16 changes: 0 additions & 16 deletions setup.py
Expand Up @@ -606,21 +606,6 @@ def run(self):
])


class lint(Command):
""" run lint """

user_options = []

def initialize_options(self):
pass

def finalize_options(self):
pass

def run(self):
subprocess.check_call(['pylint', 'lib'])


def find_packages():
for dirpath, _dirnames, filenames in os.walk('lib'):
if '__init__.py' in filenames:
Expand Down Expand Up @@ -721,7 +706,6 @@ def run(self):
'install_scripts_sbin': x_install_scripts_sbin,
'sdist': x_sdist,
'test': test,
'lint': lint,
},

classifiers = [
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -11,6 +11,6 @@ deps =
setenv =
PYTHONPATH={toxinidir}/lib
commands =
python -b -Wd setup.py lint
bash -c 'rm -rf build && PYTHONPATH=$PWD/lib:$PWD/repoman/lib pylint *'
python -b -Wd setup.py test
python -b -Wd repoman/setup.py test

0 comments on commit bbb3434

Please sign in to comment.