22build-backend = " hatchling.build"
33requires = [
44 " hatch-vcs>=0.3" ,
5- " hatchling>=1.14 " ,
5+ " hatchling>=1.17.1 " ,
66]
77
88[project ]
@@ -22,8 +22,13 @@ classifiers = [
2222 " License :: OSI Approved :: MIT License" ,
2323 " Operating System :: OS Independent" ,
2424 " Programming Language :: Python" ,
25- " Programming Language :: Python :: 3" ,
2625 " Programming Language :: Python :: 3 :: Only" ,
26+ " Programming Language :: Python :: 3.7" ,
27+ " Programming Language :: Python :: 3.8" ,
28+ " Programming Language :: Python :: 3.9" ,
29+ " Programming Language :: Python :: 3.10" ,
30+ " Programming Language :: Python :: 3.11" ,
31+ " Programming Language :: Python :: 3.12" ,
2732 " Programming Language :: Python :: Implementation :: CPython" ,
2833 " Topic :: Software Development :: Libraries :: Python Modules" ,
2934]
@@ -34,7 +39,7 @@ dependencies = [
3439 " pytest>=7.3.1" ,
3540]
3641optional-dependencies.test = [
37- " coverage>=7.2.3 " ,
42+ " coverage>=7.2.7 " ,
3843 " pytest-mock>=3.10" ,
3944]
4045urls.Homepage = " https://github.com/pytest-dev/pytest-env"
@@ -76,3 +81,25 @@ paths.source = [
7681python_version = " 3.10"
7782show_error_codes = true
7883strict = true
84+
85+ [tool .ruff ]
86+ select = [" ALL" ]
87+ line-length = 120
88+ target-version = " py37"
89+ isort = {known-first-party = [" pytest_env" ], required-imports = [" from __future__ import annotations" ]}
90+ ignore = [
91+ " ANN101" , # no typoe annotation for self
92+ " ANN401" , # allow Any as type annotation
93+ " D203" , # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
94+ " D212" , # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
95+ " S104" , # Possible binding to all interface
96+ ]
97+ [tool .ruff .per-file-ignores ]
98+ "tests/**/*.py" = [
99+ " S101" , # asserts allowed in tests...
100+ " FBT" , # don"t care about booleans as positional arguments in tests
101+ " INP001" , # no implicit namespace
102+ " D" , # don"t care about documentation in tests
103+ " S603" , # `subprocess` call: check for execution of untrusted input
104+ " PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
105+ ]
0 commit comments