@@ -197,14 +197,18 @@ lint.ignore = [
197197 " S404" , # Using subprocess is alright.
198198 " S603" , # Using subprocess is alright.
199199]
200+ lint.per-file-ignores."src/tox/pytest.py" = [
201+ " pytest-fixture-autouse" , # the plugin's shared setup fixtures are meant to apply to every test
202+ ]
200203lint.per-file-ignores."tests/**/*.py" = [
201- " D" , # don't care about documentation in tests
202- " FBT" , # don't care about booleans as positional arguments in tests
203- " INP001" , # no implicit namespace
204- " PLR0913" , # too many arguments to function definition
205- " PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
206- " S101" , # asserts allowed in tests
207- " S603" , # `subprocess` call: check for execution of untrusted input
204+ " D" , # don't care about documentation in tests
205+ " FBT" , # don't care about booleans as positional arguments in tests
206+ " INP001" , # no implicit namespace
207+ " PLR0913" , # too many arguments to function definition
208+ " PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
209+ " pytest-fixture-autouse" , # shared setup fixtures are meant to apply to every test
210+ " S101" , # asserts allowed in tests
211+ " S603" , # `subprocess` call: check for execution of untrusted input
208212]
209213lint.isort = { known-first-party = [
210214 " tox" ,
@@ -235,8 +239,8 @@ strict = true
235239overrides = [ { module = [ " re_assert" ], ignore_missing_imports = true } ]
236240
237241[tool .pyrefly ]
238- project-includes = [ " src/tox" , " tests/type_check" ]
239242python-platform = " linux" # ty --python-platform all covers the other platforms; keeps pyrefly output identical on every runner
243+ project-includes = [ " src/tox" , " tests/type_check" ]
240244search-path = [ " src" , " typestubs" ]
241245
242246[tool .ty ]
@@ -255,7 +259,7 @@ ini_options.markers = [
255259]
256260ini_options.filterwarnings = [
257261 " error" ,
258- " ignore:os.path.commonprefix\\ (\\ ) is deprecated:DeprecationWarning" , # https://github.com/pygments/pygments/issues/3039 https://github.com/pypa/pyproject-hooks/issues/223
262+ " ignore:os.path.commonprefix\\ (\\ ) is deprecated:DeprecationWarning" , # https://github.com/pygments/pygments/issues/3039 https://github.com/pypa/pyproject-hooks/issues/223
259263 " ignore:subprocess .* is still running:ResourceWarning" ,
260264 " ignore:unclosed database in <sqlite3.Connection object at:ResourceWarning" ,
261265 " ignore:unclosed file <_io.TextIOWrapper:ResourceWarning" ,
0 commit comments