Skip to content

Commit e79d244

Browse files
committed
Merge pull request pypa/distutils#254 from DimitriPapadopoulos/RUF100
Apply ruff rule RUF100
2 parents c67b200 + df0502f commit e79d244

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

distutils/bcppcompiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def __init__(self, verbose=0, dry_run=0, force=0):
8484

8585
# -- Worker methods ------------------------------------------------
8686

87-
def compile( # noqa: C901
87+
def compile(
8888
self,
8989
sources,
9090
output_dir=None,

distutils/command/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Package containing implementation of all the standard Distutils
44
commands."""
55

6-
__all__ = [ # noqa: F822
6+
__all__ = [
77
'build',
88
'build_py',
99
'build_ext',

distutils/msvccompiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,6 @@ def set_path_env_var(self, name):
684684
OldMSVCCompiler = MSVCCompiler
685685
# get_build_architecture not really relevant now we support cross-compile
686686
from distutils.msvc9compiler import (
687-
MacroExpander, # noqa: F811
687+
MacroExpander,
688688
MSVCCompiler,
689689
)

distutils/tests/test_unixccompiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def rpath_foo(self):
3232

3333

3434
class TestUnixCCompiler(support.TempdirManager):
35-
@pytest.mark.skipif('platform.system == "Windows"') # noqa: C901
35+
@pytest.mark.skipif('platform.system == "Windows"')
3636
def test_runtime_libdir_option(self): # noqa: C901
3737
# Issue #5900; GitHub Issue #37
3838
#

ruff.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
extend-select = [
33
"C901",
44
"W",
5+
6+
# local
7+
"RUF100",
58
]
69
ignore = [
710
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules

0 commit comments

Comments
 (0)