From 138c55f337e9fe9dc4e35311cc1ec0249e821946 Mon Sep 17 00:00:00 2001 From: Antti Kaihola <13725+akaihola@users.noreply.github.com> Date: Mon, 26 Feb 2024 20:17:47 +0200 Subject: [PATCH] Ignore import mismatch when running Pytest in Nix --- default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/default.nix b/default.nix index 2011669bf..d20036ae9 100644 --- a/default.nix +++ b/default.nix @@ -3,5 +3,8 @@ pkgs.stdenv.mkDerivation { name = "darker-test"; buildInputs = [ pkgs.python311 pkgs.git ]; + environment = { + PY_IGNORE_IMPORTMISMATCH = "1"; + }; } )