Skip to content

Commit 3182044

Browse files
committed
ruff
1 parent 1c80ea2 commit 3182044

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def extract_version(toml_path: Path | str) -> str:
2222
if version := poetry.get("version"):
2323
return version
2424

25-
raise KeyError(f"No version field found in {path!r}") # noqa: TRY003 # not worth a custom exception
25+
raise KeyError(f"No version field found in {path!r}")
2626

2727

2828
def ensure_tag_not_present(tag: str, remote: str) -> None:
@@ -33,7 +33,7 @@ def ensure_tag_not_present(tag: str, remote: str) -> None:
3333
stdout=subprocess.DEVNULL,
3434
stderr=subprocess.DEVNULL,
3535
)
36-
raise Exception(f"Error: tag '{tag}' exists on remote '{remote}'") # noqa: TRY002,TRY003 # not worth a custom exception
36+
raise Exception(f"Error: tag '{tag}' exists on remote '{remote}'") # noqa: TRY002 # not worth a custom exception
3737
except subprocess.CalledProcessError:
3838
# tag not present, continue
3939
return
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../src/git_tag.py
1+
../../../copier_template_resources/git_tag.py

0 commit comments

Comments
 (0)