Skip to content

Commit

Permalink
Fix linting and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
daneah committed Nov 7, 2023
1 parent 3223ae4 commit 0a93306
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/repoman/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@

def check_if_allowed(path: Path) -> bool | NoReturn:
if REPO_TYPES_CFG not in (str(item) for item in path.iterdir()):
print(
f"{FAIL}The current directory is not configured for repository management{ENDC}"
)
print(f"{FAIL}The current directory is not configured for repository management{ENDC}")
sys.exit(1)

return True
Expand Down Expand Up @@ -90,7 +88,7 @@ def check_missing_repos(path: Path, repo_types: dict[str, set[str]]) -> None | N
if missing:
print(f"{FAIL}The following repositories are configured but do not exist:")
for repo in missing:
print("\t{repo}")
print(f"\t{repo}")
sys.exit(1)

return None
Expand Down Expand Up @@ -128,7 +126,11 @@ def main():

if args.unconfigured:
for directory in sorted(path.iterdir()):
if directory.is_dir() and str(directory) not in repo_types["all"] and str(directory) not in repo_types["ignore"]:
if (
directory.is_dir()
and str(directory) not in repo_types["all"]
and str(directory) not in repo_types["ignore"]
):
print(directory)

if args.list:
Expand All @@ -143,4 +145,3 @@ def main():
if repo in seen:
print(repo)
seen.add(repo)

2 changes: 2 additions & 0 deletions test/test_repoman.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
def test_package_is_importable():
import repoman

print(repoman)

0 comments on commit 0a93306

Please sign in to comment.