ruff: enable and fix C4 ruleset
This commit is contained in:
parent
dee0b128ca
commit
2849870773
19 changed files with 48 additions and 38 deletions
|
@ -161,14 +161,14 @@ def git_repos_in(roots: List[Path]) -> List[Path]:
|
|||
*roots,
|
||||
]).decode('utf8').splitlines()
|
||||
|
||||
candidates = set(Path(o).resolve().absolute().parent for o in outputs)
|
||||
candidates = {Path(o).resolve().absolute().parent for o in outputs}
|
||||
|
||||
# exclude stuff within .git dirs (can happen for submodules?)
|
||||
candidates = {c for c in candidates if '.git' not in c.parts[:-1]}
|
||||
|
||||
candidates = {c for c in candidates if is_git_dir(c)}
|
||||
|
||||
repos = list(sorted(map(_git_root, candidates)))
|
||||
repos = sorted(map(_git_root, candidates))
|
||||
return repos
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue