I'm trying to add pylint
checking of all .py
files to the test
process of setuptools (maybe I'm doing something wrong, please correct me). This is what I'm doing in setup.py
:
class MyTest(test):
def run_tests(self):
import pytest
import pylint
if (pylint.run_pylint()):
sys.exit(-1)
if (pytest.main(self.test_args)):
sys.exit(-1)
setup(
tests_require = ['pytest', 'pylint'],
cmdclass = {'test': MyTest},
...
)
When I run python setup.py test
the output looks broken.. Am I doing it right?