Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Flake8-2020 by Ruff #4238

Merged
merged 1 commit into from Mar 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions newsfragments/4238.misc.rst
@@ -0,0 +1 @@
Drop dependency on Flake8 by using Ruff's YTT rules instead of flake8-2020 -- by :user:`Avasam`
1 change: 1 addition & 0 deletions ruff.toml
Expand Up @@ -18,6 +18,7 @@ ignore = [
]
extend-select = [
"UP", # pyupgrade
"YTT", # flake8-2020
]
extend-ignore = [
"UP015", # redundant-open-modes, explicit is preferred
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Expand Up @@ -55,7 +55,6 @@ testing =
pytest-ruff >= 0.2.1; sys_platform != "cygwin"

# local
flake8-2020
virtualenv>=13.0.0
wheel
pip>=19.1 # For proper file:// URLs support.
Expand Down
8 changes: 4 additions & 4 deletions setuptools/tests/test_core_metadata.py
Expand Up @@ -323,9 +323,9 @@ def test_parity_with_metadata_from_pypa_wheel(tmp_path):
"testing": """
pytest >= 6
pytest-checkdocs >= 2.4
pytest-flake8 ; \\
# workaround for tholo/pytest-flake8#87
python_version < "3.12"
tomli ; \\
# Using stdlib when possible
python_version < "3.11"
ini2toml[lite]>=0.9
""",
"other": [],
Expand All @@ -345,7 +345,7 @@ def test_parity_with_metadata_from_pypa_wheel(tmp_path):
'Requires-Python: >=3.8',
'Provides-Extra: other',
'Provides-Extra: testing',
'Requires-Dist: pytest-flake8; python_version < "3.12" and extra == "testing"',
'Requires-Dist: tomli; python_version < "3.11" and extra == "testing"',
'Requires-Dist: more-itertools==8.8.0; extra == "other"',
'Requires-Dist: ini2toml[lite]>=0.9; extra == "testing"',
]
Expand Down