Skip to content

Commit

Permalink
chore: update pre-commit hooks (#481)
Browse files Browse the repository at this point in the history
* chore: update pre-commit hooks

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.3 → v0.8.6](astral-sh/ruff-pre-commit@v0.8.3...v0.8.6)
- [github.com/pre-commit/mirrors-mypy: v1.13.0 → v1.14.1](pre-commit/mirrors-mypy@v1.13.0...v1.14.1)

* Add ignore for optional argument

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Eduardo Rodrigues <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and eduardo-rodrigues authored Jan 7, 2025
1 parent 579c58b commit 23e1962
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ repos:
- id: end-of-file-fixer

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.8.3"
rev: "v0.8.6"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
rev: v1.14.1
hooks:
- id: mypy
files: '^src/decaylanguage/(decay|dec|utils)/'
Expand Down
2 changes: 1 addition & 1 deletion src/decaylanguage/dec/dec.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def parse(self, include_ccdecays: bool = True) -> None:
DecayModelAliasReplacement(model_alias_defs=dict_model_aliases).transform(
tree
)
for tree in self._parsed_decays
for tree in self._parsed_decays # type: ignore[union-attr]
]

# Check whether certain decay model parameters are defined via
Expand Down

0 comments on commit 23e1962

Please sign in to comment.