Skip to content

Commit 0a93306

Browse files
committed
Fix linting and formatting
1 parent 3223ae4 commit 0a93306

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

src/repoman/cli.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414

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

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

9694
return None
@@ -128,7 +126,11 @@ def main():
128126

129127
if args.unconfigured:
130128
for directory in sorted(path.iterdir()):
131-
if directory.is_dir() and str(directory) not in repo_types["all"] and str(directory) not in repo_types["ignore"]:
129+
if (
130+
directory.is_dir()
131+
and str(directory) not in repo_types["all"]
132+
and str(directory) not in repo_types["ignore"]
133+
):
132134
print(directory)
133135

134136
if args.list:
@@ -143,4 +145,3 @@ def main():
143145
if repo in seen:
144146
print(repo)
145147
seen.add(repo)
146-

test/test_repoman.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
def test_package_is_importable():
22
import repoman
3+
4+
print(repoman)

0 commit comments

Comments
 (0)