Merge pull request #148403 from elohmeier/py2-flake8
writers.makePythonWriter: disable flake8 checks for Python 2
This commit is contained in:
commit
46839e3690
2 changed files with 4 additions and 2 deletions
|
@ -240,9 +240,9 @@ rec {
|
|||
then "${python}/bin/python"
|
||||
else "${python.withPackages (ps: libraries)}/bin/python"
|
||||
;
|
||||
check = writeDash "python2check.sh" ''
|
||||
check = optionalString python.isPy3k (writeDash "pythoncheck.sh" ''
|
||||
exec ${pythonPackages.flake8}/bin/flake8 --show-source ${ignoreAttribute} "$1"
|
||||
'';
|
||||
'');
|
||||
} name;
|
||||
|
||||
# writePython2 takes a name an attributeset with libraries and some python2 sourcecode and
|
||||
|
|
|
@ -51,6 +51,8 @@ buildPythonPackage rec {
|
|||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Flake8 is a wrapper around pyflakes, pycodestyle and mccabe.";
|
||||
homepage = "https://github.com/pycqa/flake8";
|
||||
|
|
Loading…
Reference in a new issue