Skip to content

Commit b61530e

Browse files
authored
⬆️ pre-commit.ci autoupdate (#161)
2 parents 793f785 + c75cd4d commit b61530e

File tree

4 files changed

+20
-15
lines changed

4 files changed

+20
-15
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ fail_fast: false
99

1010
repos:
1111
- repo: https://github.com/astral-sh/ruff-pre-commit
12-
rev: v0.11.12
12+
rev: v0.12.4
1313
hooks:
1414
- id: ruff
1515
args: [--fix]
1616
- id: ruff-format
1717

1818
- repo: https://github.com/pre-commit/mirrors-mypy
19-
rev: v1.16.0
19+
rev: v1.17.0
2020
hooks:
2121
- id: mypy
2222
additional_dependencies:
@@ -25,7 +25,7 @@ repos:
2525
- types-PyYAML
2626
args: [--python-version=3.10, --ignore-missing-imports]
2727
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
28-
rev: v2.14.0
28+
rev: v2.15.0
2929
hooks:
3030
- id: pretty-format-yaml
3131
args:

poetry.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ target-version = "py38"
117117

118118
[tool.ruff.lint]
119119
extend-select = ["A", "C4", "D", "G", "I", "ICN", "NPY", "PL", "RET", "RSE", "RUF", "Q", "W"]
120+
ignore = ["PLC0415"]
120121

121122
[tool.ruff.lint.isort]
122123
combine-as-imports = true

src/cpac/utils/utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ def __ge__(self, other):
166166
return True
167167
return False
168168

169+
def __hash__(self):
170+
"""Return hash for ``PermissionMode``."""
171+
return hash(self.mode)
172+
169173
def __lt__(self, other):
170174
"""Return True if self.mode < other.mode, False otherwise."""
171175
for permission in (self, other):

0 commit comments

Comments
 (0)