Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ dev = [

[tool.ruff]
format.preview = true
format.nested-string-quote-style = "preferred"
lint.select = [
"ALL",
"DTZ002", # Useful outside of timezones
Expand Down
2 changes: 1 addition & 1 deletion src/pre_commit_hooks/docker_apt_renovate.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def from_docker_tag(cls, tag: str, *, logger: Logger) -> DebianRelease | None:
f"{
f"or version number ('{release.numeric}') "
if release.numeric
else ''
else ""
}"
f"instead.",
)
Expand Down
2 changes: 1 addition & 1 deletion src/pre_commit_hooks/gha.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def get_full_version(

logger.warn(
f"Found multiple tags for commit {digest}: "
f"{', '.join(matching_tags)}; but all of them do not satisfy"
f"{", ".join(matching_tags)}; but all of them do not satisfy"
)

return None
Expand Down
4 changes: 2 additions & 2 deletions tests/test_all_test_files_are_used.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def test_all_test_files_are_used() -> None:
weird_files = used_files & allow_unused_files
if weird_files:
pytest.fail(
f"files {', '.join(map(str, weird_files))} were assumed to not be used as input"
f"files {", ".join(map(str, weird_files))} were assumed to not be used as input"
)

unused_files = set()
Expand All @@ -52,7 +52,7 @@ def test_all_test_files_are_used() -> None:
bad_files = unused_files - used_files - allow_unused_files
if bad_files:
pytest.fail(
f"files {', '.join(map(str, bad_files))} are not used in test parameters. "
f"files {", ".join(map(str, bad_files))} are not used in test parameters. "
f"If these are output files, try adding a test verifying putting the output files back in "
f"leaves them unchanged and returns exit code 0. (with TC.out_double)"
)