Skip to content

Commit 460424a

Browse files
committed
lint: Enable flake8-raise
I'm not sure I agree with not using the parens in raise SomeError but being consistent is definitely better than not being consistent. Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
1 parent 7e52190 commit 460424a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ select = [
9797
"PIE", # flake8-pie
9898
"PYI", # flake8-pyi
9999
"RET", # flake8-return
100+
"RSE", # flake8-raise
100101
"RUF", # ruff-specific rules
101102
"S", # flake8-bandit
102103
"SIM", # flake8-simplify

tuf/ngclient/_internal/trusted_metadata_set.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def update_timestamp(self, data: bytes) -> Timestamp:
240240
)
241241
# Keep using old timestamp if versions are equal.
242242
if new_timestamp.version == self.timestamp.version:
243-
raise exceptions.EqualVersionNumberError()
243+
raise exceptions.EqualVersionNumberError
244244

245245
# Prevent rolling back snapshot version
246246
snapshot_meta = self.timestamp.snapshot_meta

0 commit comments

Comments
 (0)