summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus S. Wamser <github-dev@mail2013.wamser.eu>2022-03-23 12:45:11 +0100
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2022-03-27 12:16:32 +0000
commit9ca4ded2033bdaebbe1b340ed6466d70799d574e (patch)
tree59a431c6028859863b11ce7f86edf6233458abd6
parent904a35f16881ec3696644c5c7a745b7abb03fece (diff)
python3Packages.hacking: disable only failing tests instead of test group
(cherry picked from commit b89c8bcc73da156f012ad1438b4add08180818ac)
-rw-r--r--pkgs/development/python-modules/hacking/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/hacking/default.nix b/pkgs/development/python-modules/hacking/default.nix
index d47449c2ca5e..ad7d4a9def73 100644
--- a/pkgs/development/python-modules/hacking/default.nix
+++ b/pkgs/development/python-modules/hacking/default.nix
@@ -20,6 +20,10 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace requirements.txt \
--replace "flake8<3.9.0,>=3.8.0" "flake8"
+ substituteInPlace hacking/checks/python23.py \
+ --replace 'H236: class Foo(object):\n __metaclass__ = \' 'Okay: class Foo(object):\n __metaclass__ = \'
+ substituteInPlace hacking/checks/except_checks.py \
+ --replace 'H201: except:' 'Okay: except:'
'';
nativeBuildInputs = [ pbr ];