Skip to content

Commit fc9f889

Browse files
Enforce ruff/pyupgrade rule UP030
UP030 Use implicit references for positional format fields
1 parent 9ffbeb2 commit fc9f889

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

ruff.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ ignore = [
3535
"TRY003", # raise-vanilla-args, avoid multitude of exception classes
3636
"TRY301", # raise-within-try, it's handy
3737
"UP015", # redundant-open-modes, explicit is preferred
38-
"UP030", # temporarily disabled
3938
"UP031", # temporarily disabled
4039
"UP032", # temporarily disabled
4140
"UP038", # Using `X | Y` in `isinstance` call is slower and more verbose https://github.com/astral-sh/ruff/issues/7871

setuptools/command/sdist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class sdist(orig.sdist):
5353
negative_opt: ClassVar[dict[str, str]] = {}
5454

5555
README_EXTENSIONS = ['', '.rst', '.txt', '.md']
56-
READMES = tuple('README{0}'.format(ext) for ext in README_EXTENSIONS)
56+
READMES = tuple('README{}'.format(ext) for ext in README_EXTENSIONS)
5757

5858
def run(self) -> None:
5959
self.run_command('egg_info')

setuptools/tests/test_wheel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ def test_wheel_install_pep_503():
605605
def test_wheel_no_dist_dir():
606606
project_name = 'nodistinfo'
607607
version = '1.0'
608-
wheel_name = '{0}-{1}-py2.py3-none-any.whl'.format(project_name, version)
608+
wheel_name = '{}-{}-py2.py3-none-any.whl'.format(project_name, version)
609609
with tempdir() as source_dir:
610610
wheel_path = os.path.join(source_dir, wheel_name)
611611
# create an empty zip file

0 commit comments

Comments
 (0)