Skip to content

Commit

Permalink
Fix Python formatting (Black) (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
graemenail authored Jul 31, 2023
1 parent e333208 commit becb6e2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions bindings/python/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ def download(self, model_identifier: str):
with tarfile.open(save_location) as model_archive:

def is_within_directory(directory, target):

abs_directory = os.path.abspath(directory)
abs_target = os.path.abspath(target)

Expand All @@ -148,7 +147,6 @@ def is_within_directory(directory, target):
return prefix == abs_directory

def safe_extract(tar, path=".", members=None, *, numeric_owner=False):

for member in tar.getmembers():
member_path = os.path.join(path, member.name)
if not is_within_directory(path, member_path):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"win-arm64": "ARM64",
}


# A CMakeExtension needs a sourcedir instead of a file list.
# The name must be the _single_ output extension from the CMake build.
# If you need multiple extensions, see scikit-build.
Expand Down Expand Up @@ -84,7 +85,6 @@ def build_extension(self, ext):
pass

else:

# Single config generators are handled "normally"
single_config = any(x in cmake_generator for x in {"NMake", "Ninja"})

Expand Down

0 comments on commit becb6e2

Please sign in to comment.