Skip to content

Commit be6f2ca

Browse files
author
MarkusB
committed
lint
1 parent 517d4e9 commit be6f2ca

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

scripts/new-cpp-lib.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ def validate_segment(name: str, kind: str) -> None:
8282

8383
def kebab_to_cxx_namespace(vendor: str, lib_kebab: str) -> str:
8484
v = vendor.replace("-", "_")
85-
l = lib_kebab.replace("-", "_")
86-
return f"{v}::{l}"
85+
lib = lib_kebab.replace("-", "_")
86+
return f"{v}::{lib}"
8787

8888

8989
def cmake_option_prefix(cmake_project: str) -> str:
@@ -266,7 +266,7 @@ def git_initial_commit(dest: Path) -> None:
266266
if r.returncode != 0:
267267
die(
268268
"Could not create initial commit (set git user.name and user.email). "
269-
"Then run: git add -A && git commit -m \"Initial import from cpp-lib-template\""
269+
'Then run: git add -A && git commit -m "Initial import from cpp-lib-template"'
270270
)
271271

272272

@@ -414,7 +414,9 @@ def main() -> None:
414414
"Tip: search for devmarkusb/cpp-lib-template in README.md and set your CI badge URLs,"
415415
" or re-run with --github OWNER/REPO."
416416
)
417-
print("Next: cd there, cmake --preset gcc-debug && cmake --build build/gcc-debug && ctest --preset gcc-debug")
417+
print(
418+
"Next: cd there, cmake --preset gcc-debug && cmake --build build/gcc-debug && ctest --preset gcc-debug"
419+
)
418420

419421

420422
if __name__ == "__main__":

0 commit comments

Comments
 (0)