python.pkgs.pycodestyle: fixup tests

This commit is contained in:
Frederik Rietdijk 2020-06-07 09:33:46 +02:00
parent 3e28db9eb8
commit 5c08320af6
1 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,7 @@
{ buildPythonPackage
, fetchPypi
, lib
, python
}:
buildPythonPackage rec {
@ -12,12 +13,14 @@ buildPythonPackage rec {
sha256 = "c58a7d2815e0e8d7972bf1803331fb0152f867bd89adf8a01dfd55085434192e";
};
dontUseSetuptoolsCheck = true;
# https://github.com/PyCQA/pycodestyle/blob/2.5.0/tox.ini#L14
checkPhase = ''
python pycodestyle.py --max-doc-length=72 --testsuite testsuite
python pycodestyle.py --statistics pycodestyle.py
python pycodestyle.py --max-doc-length=72 --doctest
python setup.py test
${python.interpreter} pycodestyle.py --max-doc-length=72 --testsuite testsuite
${python.interpreter} pycodestyle.py --statistics pycodestyle.py
${python.interpreter} pycodestyle.py --max-doc-length=72 --doctest
${python.interpreter} -m unittest discover testsuite -vv
'';
meta = with lib; {