Skip to content

Commit f526907

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9832e46 commit f526907

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/pytest_env/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ class Entry:
6262

6363
@pytest.hookimpl(tryfirst=True)
6464
def pytest_load_initial_conftests(
65-
args: list[str], # noqa: ARG001
65+
args: list[str], # ruff:ignore[unused-function-argument]
6666
early_config: pytest.Config,
67-
parser: pytest.Parser, # noqa: ARG001
67+
parser: pytest.Parser, # ruff:ignore[unused-function-argument]
6868
) -> None:
6969
"""Load environment variables from configuration files."""
7070
verbose = getattr(early_config.known_args_namespace, "pytest_env_verbose", False)

tests/test_env.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import pytest
1010

11-
from pytest_env.plugin import _load_toml_config # noqa: PLC2701
11+
from pytest_env.plugin import _load_toml_config # ruff:ignore[import-private-name]
1212

1313

1414
@pytest.mark.parametrize(
@@ -277,7 +277,7 @@ def test_env_via_pytest(
277277
),
278278
],
279279
)
280-
def test_env_via_toml( # noqa: PLR0913, PLR0917
280+
def test_env_via_toml( # ruff:ignore[too-many-arguments, too-many-positional-arguments]
281281
pytester: pytest.Pytester,
282282
env: dict[str, str],
283283
pyproject_toml: str,
@@ -474,7 +474,7 @@ def test_env_via_toml( # noqa: PLR0913, PLR0917
474474
),
475475
],
476476
)
477-
def test_env_via_env_file( # noqa: PLR0913, PLR0917
477+
def test_env_via_env_file( # ruff:ignore[too-many-arguments, too-many-positional-arguments]
478478
pytester: pytest.Pytester,
479479
env: dict[str, str],
480480
env_file_content: str,
@@ -619,7 +619,7 @@ def test_env_via_pyproject_toml_bad(pytester: pytest.Pytester, toml_name: str) -
619619
),
620620
],
621621
)
622-
def test_envfile_cli( # noqa: PLR0913, PLR0917
622+
def test_envfile_cli( # ruff:ignore[too-many-arguments, too-many-positional-arguments]
623623
pytester: pytest.Pytester,
624624
env_file_content: str | None,
625625
cli_file_content: str,

tests/test_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33

44
def test_version() -> None:
5-
import pytest_env # noqa: PLC0415
5+
import pytest_env # ruff:ignore[import-outside-top-level]
66

77
assert pytest_env.__version__ is not None

0 commit comments

Comments
 (0)