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 1
1
repos :
2
2
- repo : https://github.com/astral-sh/ruff-pre-commit
3
- rev : v0.9.9
3
+ rev : v0.12.0
4
4
hooks :
5
5
- id : ruff
6
6
args : [--fix, --unsafe-fixes]
Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ ignore = [
73
73
# Suppress nuisance warnings about module-import-not-at-top-of-file (E402) due to workaround for #4476
74
74
"setuptools/__init__.py" = [" E402" ]
75
75
"pkg_resources/__init__.py" = [" E402" , " ANN204" ]
76
+ "pkg_resources/tests/test_resources.py" = [" PT031" ]
76
77
77
78
[lint .isort ]
78
79
combine-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):
103
103
path .build (files , prefix = tmp_path )
104
104
pyproject = tmp_path / "pyproject.toml"
105
105
106
+ dist = Distribution ({"extras_require" : {"hello" : ["world" ]}})
107
+
106
108
with pytest .warns (SetuptoolsWarning , match = ".extras_require. overwritten" ):
107
- dist = Distribution ({"extras_require" : {"hello" : ["world" ]}})
108
109
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):
165
165
build_py = dist .get_command_obj ("build_py" )
166
166
167
167
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
169
169
# TODO: To fix #3260 we need some transition period to deprecate the
170
170
# existing behavior of `include_package_data`. After the transition, we
171
171
# should remove the warning and fix the behavior.
You can’t perform that action at this time.
0 commit comments