Skip to content

Commit 9e3ce0d

Browse files
[pre-commit.ci] pre-commit autoupdate (#244)
<!--pre-commit.ci start--> updates: - [github.com/codespell-project/codespell: v2.4.2 → v2.4.3](codespell-project/codespell@v2.4.2...v2.4.3) - [github.com/astral-sh/ruff-pre-commit: v0.15.21 → v0.15.22](astral-sh/ruff-pre-commit@v0.15.21...v0.15.22) - [github.com/zizmorcore/zizmor-pre-commit: v1.26.1 → v1.27.0](zizmorcore/zizmor-pre-commit@v1.26.1...v1.27.0) <!--pre-commit.ci end--> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 69dae16 commit 9e3ce0d

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repos:
1010
- id: check-github-workflows
1111
args: ["--verbose"]
1212
- repo: https://github.com/codespell-project/codespell
13-
rev: v2.4.2
13+
rev: v2.4.3
1414
hooks:
1515
- id: codespell
1616
additional_dependencies: ["tomli>=2.4"]
@@ -23,7 +23,7 @@ repos:
2323
hooks:
2424
- id: pyproject-fmt
2525
- repo: https://github.com/astral-sh/ruff-pre-commit
26-
rev: "v0.15.21"
26+
rev: "v0.15.22"
2727
hooks:
2828
- id: ruff-format
2929
- id: ruff
@@ -41,7 +41,7 @@ repos:
4141
hooks:
4242
- id: yamlfmt
4343
- repo: https://github.com/zizmorcore/zizmor-pre-commit
44-
rev: v1.26.1
44+
rev: v1.27.0
4545
hooks:
4646
- id: zizmor
4747
- repo: meta

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)