Skip to content

Commit

Permalink
Merge pull request #4238 from Avasam/Flake8-2020-to-Ruff
Browse files Browse the repository at this point in the history
Replace Flake8-2020 by Ruff
  • Loading branch information
jaraco authored Mar 3, 2024
2 parents 80da90c + 3d7e0bf commit ecfd1ce
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions newsfragments/4238.misc.rst
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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

0 comments on commit ecfd1ce

Please sign in to comment.