diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5c6cb67..012f5ec 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: - id: check-github-workflows args: ["--verbose"] - repo: https://github.com/codespell-project/codespell - rev: v2.4.2 + rev: v2.4.3 hooks: - id: codespell additional_dependencies: ["tomli>=2.4"] @@ -23,7 +23,7 @@ repos: hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.15.21" + rev: "v0.15.22" hooks: - id: ruff-format - id: ruff @@ -41,7 +41,7 @@ repos: hooks: - id: yamlfmt - repo: https://github.com/zizmorcore/zizmor-pre-commit - rev: v1.26.1 + rev: v1.27.0 hooks: - id: zizmor - repo: meta diff --git a/src/pytest_env/plugin.py b/src/pytest_env/plugin.py index 023192a..ea6ffe4 100644 --- a/src/pytest_env/plugin.py +++ b/src/pytest_env/plugin.py @@ -62,9 +62,9 @@ class Entry: @pytest.hookimpl(tryfirst=True) def pytest_load_initial_conftests( - args: list[str], # noqa: ARG001 + args: list[str], # ruff:ignore[unused-function-argument] early_config: pytest.Config, - parser: pytest.Parser, # noqa: ARG001 + parser: pytest.Parser, # ruff:ignore[unused-function-argument] ) -> None: """Load environment variables from configuration files.""" verbose = getattr(early_config.known_args_namespace, "pytest_env_verbose", False) diff --git a/tests/test_env.py b/tests/test_env.py index 55b3b0c..3a0302a 100644 --- a/tests/test_env.py +++ b/tests/test_env.py @@ -8,7 +8,7 @@ import pytest -from pytest_env.plugin import _load_toml_config # noqa: PLC2701 +from pytest_env.plugin import _load_toml_config # ruff:ignore[import-private-name] @pytest.mark.parametrize( @@ -277,7 +277,7 @@ def test_env_via_pytest( ), ], ) -def test_env_via_toml( # noqa: PLR0913, PLR0917 +def test_env_via_toml( # ruff:ignore[too-many-arguments, too-many-positional-arguments] pytester: pytest.Pytester, env: dict[str, str], pyproject_toml: str, @@ -474,7 +474,7 @@ def test_env_via_toml( # noqa: PLR0913, PLR0917 ), ], ) -def test_env_via_env_file( # noqa: PLR0913, PLR0917 +def test_env_via_env_file( # ruff:ignore[too-many-arguments, too-many-positional-arguments] pytester: pytest.Pytester, env: dict[str, str], env_file_content: str, @@ -619,7 +619,7 @@ def test_env_via_pyproject_toml_bad(pytester: pytest.Pytester, toml_name: str) - ), ], ) -def test_envfile_cli( # noqa: PLR0913, PLR0917 +def test_envfile_cli( # ruff:ignore[too-many-arguments, too-many-positional-arguments] pytester: pytest.Pytester, env_file_content: str | None, cli_file_content: str, diff --git a/tests/test_version.py b/tests/test_version.py index 3a9ac2b..2f688eb 100644 --- a/tests/test_version.py +++ b/tests/test_version.py @@ -2,6 +2,6 @@ def test_version() -> None: - import pytest_env # noqa: PLC0415 + import pytest_env # ruff:ignore[import-outside-top-level] assert pytest_env.__version__ is not None