2
2
build-backend = " hatchling.build"
3
3
requires = [
4
4
" hatch-vcs>=0.4" ,
5
- " hatchling>=1.18 " ,
5
+ " hatchling>=1.21.1 " ,
6
6
]
7
7
8
8
[project ]
@@ -35,12 +35,12 @@ dynamic = [
35
35
" version" ,
36
36
]
37
37
dependencies = [
38
- " pytest>=7.4.3 " ,
38
+ " pytest>=8.0.1 " ,
39
39
' tomli>=2.0.1; python_version < "3.11"' ,
40
40
]
41
41
optional-dependencies.test = [
42
42
" covdefaults>=2.3" ,
43
- " coverage>=7.3 .2" ,
43
+ " coverage>=7.4 .2" ,
44
44
" pytest-mock>=3.12" ,
45
45
]
46
46
urls.Homepage = " https://github.com/pytest-dev/pytest-env"
@@ -53,34 +53,39 @@ env = "pytest_env.plugin"
53
53
build.hooks.vcs.version-file = " src/pytest_env/version.py"
54
54
version.source = " vcs"
55
55
56
- [tool .black ]
57
- line-length = 120
58
-
59
56
[tool .ruff ]
60
- select = [" ALL" ]
61
57
line-length = 120
62
58
target-version = " py38"
63
- isort = {known-first-party = [" pytest_env" ], required-imports = [" from __future__ import annotations" ]}
64
- ignore = [
65
- " ANN101" , # no type annotation for self
66
- " ANN401" , # allow Any as type annotation
67
- " D203" , # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
68
- " D212" , # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
69
- " S104" , # Possible binding to all interface
59
+ lint.isort = { known-first-party = [" pytest_env" ], required-imports = [" from __future__ import annotations" ] }
60
+ lint.select = [" ALL" ]
61
+ lint.ignore = [
62
+ " ANN101" , # no type annotation for self
63
+ " ANN401" , # allow Any as type annotation
64
+ " D203" , # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
65
+ " 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
68
+ " ISC001" , # Conflict with formatter
69
+ " CPY" , # No copyright statements
70
70
]
71
- [tool .ruff .per-file-ignores ]
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 ]
72
76
"tests/**/*.py" = [
73
- " S101" , # asserts allowed in tests...
74
- " FBT" , # don"t care about booleans as positional arguments in tests
75
- " INP001" , # no implicit namespace
76
- " D" , # don"t care about documentation in tests
77
- " S603" , # `subprocess` call: check for execution of untrusted input
78
- " PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
77
+ " S101" , # asserts allowed in tests...
78
+ " FBT" , # don"t care about booleans as positional arguments in tests
79
+ " INP001" , # no implicit namespace
80
+ " D" , # don"t care about documentation in tests
81
+ " S603" , # `subprocess` call: check for execution of untrusted input
82
+ " PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
79
83
]
80
84
81
- [tool .isort ]
82
- profile = " black"
83
- known_first_party = [" pytest_env" ]
85
+ [tool .codespell ]
86
+ builtin = " clear,usage,en-GB_to_en-US"
87
+ write-changes = true
88
+ count = true
84
89
85
90
[tool .coverage ]
86
91
run.source = [" pytest_env" , " tests" ]
0 commit comments