Skip to content

Commit 0fee0b5

Browse files
[pre-commit.ci] pre-commit autoupdate (#86)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 8d4154d commit 0fee0b5

File tree

2 files changed

+35
-24
lines changed

2 files changed

+35
-24
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repos:
55
- id: end-of-file-fixer
66
- id: trailing-whitespace
77
- repo: https://github.com/python-jsonschema/check-jsonschema
8-
rev: 0.28.2
8+
rev: 0.28.4
99
hooks:
1010
- id: check-github-workflows
1111
args: [ "--verbose" ]
@@ -20,12 +20,12 @@ repos:
2020
- id: tox-ini-fmt
2121
args: ["-p", "fix"]
2222
- repo: https://github.com/tox-dev/pyproject-fmt
23-
rev: "1.8.0"
23+
rev: "2.1.2"
2424
hooks:
2525
- id: pyproject-fmt
2626
additional_dependencies: ["tox>=4.13"]
2727
- repo: https://github.com/astral-sh/ruff-pre-commit
28-
rev: "v0.4.3"
28+
rev: "v0.4.4"
2929
hooks:
3030
- id: ruff-format
3131
- id: ruff

pyproject.toml

Lines changed: 32 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ keywords = [
1414
"pytest",
1515
]
1616
license.file = "LICENSE"
17-
maintainers = [{ name = "Bernát Gábor", email = "[email protected]" }]
17+
maintainers = [
18+
{ name = "Bernát Gábor", email = "[email protected]" },
19+
]
1820
requires-python = ">=3.8"
1921
classifiers = [
2022
"Development Status :: 5 - Production/Stable",
@@ -36,7 +38,7 @@ dynamic = [
3638
]
3739
dependencies = [
3840
"pytest>=8.0.1",
39-
'tomli>=2.0.1; python_version < "3.11"',
41+
"tomli>=2.0.1; python_version<'3.11'",
4042
]
4143
optional-dependencies.test = [
4244
"covdefaults>=2.3",
@@ -46,53 +48,62 @@ optional-dependencies.test = [
4648
urls.Homepage = "https://github.com/pytest-dev/pytest-env"
4749
urls.Source = "https://github.com/pytest-dev/pytest-env"
4850
urls.Tracker = "https://github.com/pytest-dev/pytest-env/issues"
49-
[project.entry-points.pytest11]
50-
env = "pytest_env.plugin"
51+
entry-points.pytest11.env = "pytest_env.plugin"
5152

5253
[tool.hatch]
5354
build.hooks.vcs.version-file = "src/pytest_env/version.py"
5455
version.source = "vcs"
5556

5657
[tool.ruff]
57-
line-length = 120
5858
target-version = "py38"
59-
lint.isort = { known-first-party = ["pytest_env"], required-imports = ["from __future__ import annotations"] }
60-
lint.select = ["ALL"]
59+
line-length = 120
60+
format.preview = true
61+
format.docstring-code-line-length = 100
62+
format.docstring-code-format = true
63+
lint.select = [
64+
"ALL",
65+
]
6166
lint.ignore = [
6267
"ANN101", # no type annotation for self
6368
"ANN401", # allow Any as type annotation
69+
"COM812", # Conflict with formatter
70+
"CPY", # No copyright statements
6471
"D203", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
6572
"D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
66-
"S104", # Possible binding to all interface
67-
"COM812", # Conflict with formatter
6873
"ISC001", # Conflict with formatter
69-
"CPY", # No copyright statements
74+
"S104", # Possible binding to all interface
7075
]
71-
lint.preview = true
72-
format.preview = true
73-
format.docstring-code-format = true
74-
format.docstring-code-line-length = 100
75-
[tool.ruff.lint.per-file-ignores]
76-
"tests/**/*.py" = [
77-
"S101", # asserts allowed in tests...
76+
lint.per-file-ignores."tests/**/*.py" = [
77+
"D", # don"t care about documentation in tests
7878
"FBT", # don"t care about booleans as positional arguments in tests
7979
"INP001", # no implicit namespace
80-
"D", # don"t care about documentation in tests
81-
"S603", # `subprocess` call: check for execution of untrusted input
8280
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
81+
"S101", # asserts allowed in tests...
82+
"S603", # `subprocess` call: check for execution of untrusted input
8383
]
84+
lint.isort = { known-first-party = [
85+
"pytest_env",
86+
], required-imports = [
87+
"from __future__ import annotations",
88+
] }
89+
lint.preview = true
8490

8591
[tool.codespell]
8692
builtin = "clear,usage,en-GB_to_en-US"
8793
write-changes = true
8894
count = true
8995

9096
[tool.coverage]
91-
run.source = ["pytest_env", "tests"]
97+
run.source = [
98+
"pytest_env",
99+
"tests",
100+
]
92101
run.dynamic_context = "test_function"
93102
run.branch = true
94103
run.parallel = true
95-
run.plugins = ["covdefaults"]
104+
run.plugins = [
105+
"covdefaults",
106+
]
96107
report.fail_under = 100
97108
report.show_missing = true
98109
html.show_contexts = true

0 commit comments

Comments
 (0)