Skip to content

Commit

Permalink
ruff format .
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Oct 25, 2023
1 parent 45c105c commit be2f231
Show file tree
Hide file tree
Showing 5 changed files with 309 additions and 300 deletions.
4 changes: 2 additions & 2 deletions pypath.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def get_python_library(python_version: str):
masd = sysconfig.get_config_var("multiarchsubdir")
if masd:
if masd.startswith(os.sep):
masd = masd[len(os.sep):]
masd = masd[len(os.sep) :]
libdir_masd = os.path.join(libdir, masd)
if os.path.exists(libdir_masd):
libdir = libdir_masd
Expand Down Expand Up @@ -227,7 +227,7 @@ def _guess_python_library(python_version: str):
masd = sysconfig.get_config_var("multiarchsubdir")
if masd:
if masd.startswith(os.sep):
masd = masd[len(os.sep):]
masd = masd[len(os.sep) :]
candidate_libdirs.append(os.path.join(libdir, masd))
candidate_libdirs.append(libdir)

Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@ dev-dependencies = [
"auditwheel~=5.4.0",
"pytest~=7.3.2",
]


[tool.ruff]
line-length = 120
extend-ignore = ["F405"]
Loading

0 comments on commit be2f231

Please sign in to comment.