Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/pytest_env/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 4 additions & 4 deletions tests/test_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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