Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#472)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/PyCQA/pylint: v3.1.0 → v3.2.2](pylint-dev/pylint@v3.1.0...v3.2.2)

* Raise exception on invalid action

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Kiran Jonnalagadda <kiran@hasgeek.com>
  • Loading branch information
pre-commit-ci[bot] and jace committed May 22, 2024
1 parent b706aea commit 310e1f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,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: [
Expand Down
2 changes: 2 additions & 0 deletions src/coaster/sqlalchemy/roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,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
Expand Down

0 comments on commit 310e1f6

Please sign in to comment.