Skip to content

Commit 0107b07

Browse files
authored
Merge pull request #264 from DimitriPapadopoulos/YTT
Enforce ruff/flake8-2020 rule (YTT301)
2 parents d42a6aa + ffa18a4 commit 0107b07

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

distutils/sysconfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def get_python_lib(plat_specific=False, standard_lib=False, prefix=None):
236236
if prefix is None:
237237
prefix = PREFIX
238238
if standard_lib:
239-
return os.path.join(prefix, "lib-python", sys.version[0])
239+
return os.path.join(prefix, "lib-python", sys.version_info.major)
240240
return os.path.join(prefix, 'site-packages')
241241

242242
early_prefix = prefix

ruff.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ extend-select = [
1313
"RUF100",
1414
"TRY",
1515
"UP",
16+
"YTT",
1617
]
1718
ignore = [
1819
# local

0 commit comments

Comments
 (0)