diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 328e904c..afe374ce 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -46,7 +46,7 @@ repos: - id: python-check-blanket-type-ignore - id: python-no-log-warn - repo: https://github.com/PyCQA/pylint - rev: v3.1.0 + rev: v3.2.2 hooks: - id: pylint args: [ diff --git a/src/coaster/sqlalchemy/roles.py b/src/coaster/sqlalchemy/roles.py index d23d5985..9b8765ea 100644 --- a/src/coaster/sqlalchemy/roles.py +++ b/src/coaster/sqlalchemy/roles.py @@ -958,6 +958,8 @@ def __attr_available( present, absent = self._call, self._no_call elif action == 'write': present, absent = self._write, self._no_write + else: # pragma: no cover + raise ValueError(f"Unknown action {action}") if attr in present: return True