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>
This commit is contained in:
Jussi Kukkonen 2024-04-03 14:33:00 +03:00
parent 7e52190bf0
commit 460424a620
2 changed files with 2 additions and 1 deletions

View file

@ -97,6 +97,7 @@ select = [
"PIE", # flake8-pie
"PYI", # flake8-pyi
"RET", # flake8-return
"RSE", # flake8-raise
"RUF", # ruff-specific rules
"S", # flake8-bandit
"SIM", # flake8-simplify

View file

@ -240,7 +240,7 @@ def update_timestamp(self, data: bytes) -> Timestamp:
)
# Keep using old timestamp if versions are equal.
if new_timestamp.version == self.timestamp.version:
raise exceptions.EqualVersionNumberError()
raise exceptions.EqualVersionNumberError
# Prevent rolling back snapshot version
snapshot_meta = self.timestamp.snapshot_meta