From fd36946c4be4528bfad546c189e5de9eb3816f61 Mon Sep 17 00:00:00 2001 From: Willi Ballenthin Date: Thu, 13 Jul 2023 14:32:24 +0200 Subject: [PATCH 1/4] conftest: import symbols prefixed with _ --- tests/conftest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index 37f43396..447d870e 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -14,3 +14,7 @@ # https://www.revsys.com/tidbits/pytest-fixtures-are-magic/ # https://lobste.rs/s/j8xgym/pytest_fixtures_are_magic from fixtures import * # noqa: F403 [unable to detect undefined names] +from fixtures import _039a6_dotnetfile_extractor # noqa: F403 [unable to detect undefined names] +from fixtures import _0953c_dotnetfile_extractor # noqa: F403 [unable to detect undefined names] +from fixtures import _692f_dotnetfile_extractor # noqa: F403 [unable to detect undefined names] +from fixtures import _1c444_dotnetfile_extractor # noqa: F403 [unable to detect undefined names] From c4da4bcfe78dbd9fb1c04e263883cbbf519488a9 Mon Sep 17 00:00:00 2001 From: Willi Ballenthin Date: Thu, 13 Jul 2023 14:35:09 +0200 Subject: [PATCH 2/4] conftest: update noqa ignores --- tests/conftest.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 447d870e..1da700a9 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -14,7 +14,7 @@ # https://www.revsys.com/tidbits/pytest-fixtures-are-magic/ # https://lobste.rs/s/j8xgym/pytest_fixtures_are_magic from fixtures import * # noqa: F403 [unable to detect undefined names] -from fixtures import _039a6_dotnetfile_extractor # noqa: F403 [unable to detect undefined names] -from fixtures import _0953c_dotnetfile_extractor # noqa: F403 [unable to detect undefined names] -from fixtures import _692f_dotnetfile_extractor # noqa: F403 [unable to detect undefined names] -from fixtures import _1c444_dotnetfile_extractor # noqa: F403 [unable to detect undefined names] +from fixtures import _039a6_dotnetfile_extractor # noqa: F401 [imported but unused] +from fixtures import _0953c_dotnetfile_extractor # noqa: F401 [imported but unused] +from fixtures import _692f_dotnetfile_extractor # noqa: F401 [imported but unused] +from fixtures import _1c444_dotnetfile_extractor # noqa: F401 [imported but unused] From 724f9e4b81ad4333f9f48999f71d686edd15e9f5 Mon Sep 17 00:00:00 2001 From: Willi Ballenthin Date: Thu, 13 Jul 2023 14:52:05 +0200 Subject: [PATCH 3/4] conftest: isort --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 1da700a9..cf99e8f7 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -14,7 +14,7 @@ # https://www.revsys.com/tidbits/pytest-fixtures-are-magic/ # https://lobste.rs/s/j8xgym/pytest_fixtures_are_magic from fixtures import * # noqa: F403 [unable to detect undefined names] +from fixtures import _692f_dotnetfile_extractor # noqa: F401 [imported but unused] from fixtures import _039a6_dotnetfile_extractor # noqa: F401 [imported but unused] from fixtures import _0953c_dotnetfile_extractor # noqa: F401 [imported but unused] -from fixtures import _692f_dotnetfile_extractor # noqa: F401 [imported but unused] from fixtures import _1c444_dotnetfile_extractor # noqa: F401 [imported but unused] From 82223dcdc912fd895f9973c3040d4f729ee0f30d Mon Sep 17 00:00:00 2001 From: Willi Ballenthin Date: Thu, 13 Jul 2023 13:12:13 +0000 Subject: [PATCH 4/4] conftest: isort --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index cf99e8f7..efe603a7 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -15,6 +15,6 @@ # https://lobste.rs/s/j8xgym/pytest_fixtures_are_magic from fixtures import * # noqa: F403 [unable to detect undefined names] from fixtures import _692f_dotnetfile_extractor # noqa: F401 [imported but unused] +from fixtures import _1c444_dotnetfile_extractor # noqa: F401 [imported but unused] from fixtures import _039a6_dotnetfile_extractor # noqa: F401 [imported but unused] from fixtures import _0953c_dotnetfile_extractor # noqa: F401 [imported but unused] -from fixtures import _1c444_dotnetfile_extractor # noqa: F401 [imported but unused]