Skip to content

Commit

Permalink
Merge pull request #264 from DimitriPapadopoulos/YTT
Browse files Browse the repository at this point in the history
Enforce ruff/flake8-2020 rule (YTT301)
  • Loading branch information
jaraco committed Aug 27, 2024
2 parents d42a6aa + ffa18a4 commit 0107b07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion distutils/sysconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def get_python_lib(plat_specific=False, standard_lib=False, prefix=None):
if prefix is None:
prefix = PREFIX
if standard_lib:
return os.path.join(prefix, "lib-python", sys.version[0])
return os.path.join(prefix, "lib-python", sys.version_info.major)
return os.path.join(prefix, 'site-packages')

early_prefix = prefix
Expand Down
1 change: 1 addition & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ extend-select = [
"RUF100",
"TRY",
"UP",
"YTT",
]
ignore = [
# local
Expand Down

0 comments on commit 0107b07

Please sign in to comment.