Skip to content

Commit

Permalink
fix setup
Browse files Browse the repository at this point in the history
  • Loading branch information
cnheider committed Oct 31, 2024
1 parent 78cd82c commit 8d452a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
fail_fast: true
repos:
- repo: https://github.com/ambv/black
rev: 24.4.2
rev: 24.10.0
hooks:
- id: black
language_version: python3.10
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def recursive_flatten_ignore_str(seq: Sequence) -> Sequence:
def unroll_nested_reqs(req_str: str, base_path: Path):
"""description"""
if req_str.startswith("-r"):
with open(base_path / req_str.strip("-r").strip()) as f:
with open(base_path / req_str.replace("-r", "").strip()) as f:
return [
unroll_nested_reqs(req.strip(), base_path)
for req in readlines_ignore_comments(f)
Expand Down Expand Up @@ -179,7 +179,7 @@ def extras(self) -> dict:

for file in path.iterdir():
if file.name.startswith("requirements_"):
group_name_ = "_".join(file.name.strip(".txt").split("_")[1:])
group_name_ = "_".join(file.name.replace(".txt", "").split("_")[1:])
these_extras[group_name_] = read_reqs(file.name, path)

all_dependencies = []
Expand Down

0 comments on commit 8d452a7

Please sign in to comment.