@@ -14,7 +14,9 @@ keywords = [
1414 " pytest" ,
1515]
1616license.file = " LICENSE"
17- maintainers = [{
name =
" Bernát Gábor" ,
email =
" [email protected] " }]
17+ maintainers = [
18+ {
name =
" Bernát Gábor" ,
email =
" [email protected] " },
19+ ]
1820requires-python = " >=3.8"
1921classifiers = [
2022 " Development Status :: 5 - Production/Stable" ,
@@ -36,7 +38,7 @@ dynamic = [
3638]
3739dependencies = [
3840 " pytest>=8.0.1" ,
39- ' tomli>=2.0.1; python_version < " 3.11" ' ,
41+ " tomli>=2.0.1; python_version<' 3.11' " ,
4042]
4143optional-dependencies.test = [
4244 " covdefaults>=2.3" ,
@@ -46,53 +48,62 @@ optional-dependencies.test = [
4648urls.Homepage = " https://github.com/pytest-dev/pytest-env"
4749urls.Source = " https://github.com/pytest-dev/pytest-env"
4850urls.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 ]
5354build.hooks.vcs.version-file = " src/pytest_env/version.py"
5455version.source = " vcs"
5556
5657[tool .ruff ]
57- line-length = 120
5858target-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+ ]
6166lint.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 ]
8692builtin = " clear,usage,en-GB_to_en-US"
8793write-changes = true
8894count = true
8995
9096[tool .coverage ]
91- run.source = [" pytest_env" , " tests" ]
97+ run.source = [
98+ " pytest_env" ,
99+ " tests" ,
100+ ]
92101run.dynamic_context = " test_function"
93102run.branch = true
94103run.parallel = true
95- run.plugins = [" covdefaults" ]
104+ run.plugins = [
105+ " covdefaults" ,
106+ ]
96107report.fail_under = 100
97108report.show_missing = true
98109html.show_contexts = true
0 commit comments