File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 11repos :
22- repo : https://github.com/astral-sh/ruff-pre-commit
3- rev : v0.9.9
3+ rev : v0.12.0
44 hooks :
55 - id : ruff
66 args : [--fix, --unsafe-fixes]
Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ ignore = [
7373# Suppress nuisance warnings about module-import-not-at-top-of-file (E402) due to workaround for #4476
7474"setuptools/__init__.py" = [" E402" ]
7575"pkg_resources/__init__.py" = [" E402" , " ANN204" ]
76+ "pkg_resources/tests/test_resources.py" = [" PT031" ]
7677
7778[lint .isort ]
7879combine-as-imports = true
Original file line number Diff line number Diff line change @@ -103,7 +103,9 @@ def test_mixed_extras_require_optional_dependencies(tmp_path):
103103 path .build (files , prefix = tmp_path )
104104 pyproject = tmp_path / "pyproject.toml"
105105
106+ dist = Distribution ({"extras_require" : {"hello" : ["world" ]}})
107+
106108 with pytest .warns (SetuptoolsWarning , match = ".extras_require. overwritten" ):
107- dist = Distribution ({"extras_require" : {"hello" : ["world" ]}})
108109 dist = apply_configuration (dist , pyproject )
109- assert dist .extras_require == {"docs" : ["sphinx" ]}
110+
111+ assert dist .extras_require == {"docs" : ["sphinx" ]}
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ def test_excluded_subpackages(tmpdir_cwd):
165165 build_py = dist .get_command_obj ("build_py" )
166166
167167 msg = r"Python recognizes 'mypkg\.tests' as an importable package"
168- with pytest .warns (SetuptoolsDeprecationWarning , match = msg ):
168+ with pytest .warns (SetuptoolsDeprecationWarning , match = msg ): # noqa: PT031
169169 # TODO: To fix #3260 we need some transition period to deprecate the
170170 # existing behavior of `include_package_data`. After the transition, we
171171 # should remove the warning and fix the behavior.
You can’t perform that action at this time.
0 commit comments