Skip to content

Commit 4e842b2

Browse files
chore: update pre-commit hooks (#30)
* chore: update pre-commit hooks updates: - [github.com/commitizen-tools/commitizen: v4.5.0 → v4.8.3](commitizen-tools/commitizen@v4.5.0...v4.8.3) - [github.com/astral-sh/ruff-pre-commit: v0.11.4 → v0.12.2](astral-sh/ruff-pre-commit@v0.11.4...v0.12.2) - [github.com/pre-commit/mirrors-mypy: v1.15.0 → v1.16.1](pre-commit/mirrors-mypy@v1.15.0...v1.16.1) - [github.com/python-jsonschema/check-jsonschema: 0.32.1 → 0.33.2](python-jsonschema/check-jsonschema@0.32.1...0.33.2) * fix: add __hash__ method to OptionalDependencyEnum for proper hashing --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Nathaniel Starkman <nstarman@users.noreply.github.com>
1 parent 1f7c029 commit 4e842b2

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ci:
55

66
repos:
77
- repo: https://github.com/commitizen-tools/commitizen
8-
rev: v4.5.0
8+
rev: v4.8.3
99
hooks:
1010
- id: commitizen
1111
additional_dependencies: [cz-conventional-gitmoji]
@@ -39,7 +39,7 @@ repos:
3939
args: [--prose-wrap=always]
4040

4141
- repo: https://github.com/astral-sh/ruff-pre-commit
42-
rev: "v0.11.4"
42+
rev: "v0.12.2"
4343
hooks:
4444
# Run the linter
4545
- id: ruff
@@ -50,7 +50,7 @@ repos:
5050
types_or: [python, pyi, jupyter]
5151

5252
- repo: https://github.com/pre-commit/mirrors-mypy
53-
rev: "v1.15.0"
53+
rev: "v1.16.1"
5454
hooks:
5555
- id: mypy
5656
files: src
@@ -78,7 +78,7 @@ repos:
7878
# additional_dependencies: ["validate-pyproject-schema-store[all]"]
7979

8080
- repo: https://github.com/python-jsonschema/check-jsonschema
81-
rev: "0.32.1"
81+
rev: "0.33.2"
8282
hooks:
8383
- id: check-dependabot
8484
- id: check-github-workflows

src/optional_dependencies/_core.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,3 +189,5 @@ def __eq__(self, other: object) -> bool:
189189

190190
# Compare the versions
191191
return self.version == other
192+
193+
__hash__ = Enum.__hash__

0 commit comments

Comments
 (0)