Skip to content

Commit 230bde5

Browse files
committed
Fix ruff.toml syntax and suppress emergent failure.
1 parent bb2f767 commit 230bde5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ruff.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
extend-select = [
33
"C901",
44
"W",
5+
6+
# local
7+
"UP", # pyupgrade
8+
"YTT", # flake8-2020
59
]
610
ignore = [
711
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
@@ -20,10 +24,6 @@ ignore = [
2024
"ISC001",
2125
"ISC002",
2226
]
23-
extend-select = [
24-
"UP", # pyupgrade
25-
"YTT", # flake8-2020
26-
]
2727
extend-ignore = [
2828
"UP015", # redundant-open-modes, explicit is preferred
2929
"UP030", # temporarily disabled

setuptools/command/easy_install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ def cant_write_to_target(self):
565565
msg += '\n' + self.__access_msg
566566
raise DistutilsError(msg)
567567

568-
def check_pth_processing(self):
568+
def check_pth_processing(self): # noqa: C901
569569
"""Empirically verify whether .pth files are supported in inst. dir"""
570570
instdir = self.install_dir
571571
log.info("Checking .pth file support in %s", instdir)

0 commit comments

Comments
 (0)