From 15fe17aa25970b2e717450458fcddb51aea59854 Mon Sep 17 00:00:00 2001 From: Martin Fleischmann Date: Mon, 27 Jan 2025 13:50:41 +0100 Subject: [PATCH 1/2] move conftest --- conftest.py => inequality/tests/conftest.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename conftest.py => inequality/tests/conftest.py (100%) diff --git a/conftest.py b/inequality/tests/conftest.py similarity index 100% rename from conftest.py rename to inequality/tests/conftest.py From 790dcd6a713cad82b43c118aefe93aa39422cc02 Mon Sep 17 00:00:00 2001 From: Martin Fleischmann Date: Mon, 27 Jan 2025 13:52:52 +0100 Subject: [PATCH 2/2] lint --- inequality/tests/conftest.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/inequality/tests/conftest.py b/inequality/tests/conftest.py index 94596dac..ec0d0e8c 100644 --- a/inequality/tests/conftest.py +++ b/inequality/tests/conftest.py @@ -7,18 +7,15 @@ def warning_depr(x): return pytest.warns( - FutureWarning, - match=f"{x} is deprecated and will be removed on 2025-01-01." + FutureWarning, match=f"{x} is deprecated and will be removed on 2025-01-01." ) def warning_invalid(x): - return pytest.warns(RuntimeWarning, - match=f"invalid value encountered in {x}") + return pytest.warns(RuntimeWarning, match=f"invalid value encountered in {x}") -warning_div_zero = pytest.warns(RuntimeWarning, - match="divide by zero encountered") +warning_div_zero = pytest.warns(RuntimeWarning, match="divide by zero encountered") def pytest_configure():