Skip to content

Commit

Permalink
autoupdate pre-commit hooks (#37)
Browse files Browse the repository at this point in the history
* autoupdate pre-commit hooks

updates:
- [github.com/macisamuele/language-formatters-pre-commit-hooks: v2.12.0 → v2.13.0](macisamuele/language-formatters-pre-commit-hooks@v2.12.0...v2.13.0)
- [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](pre-commit/mirrors-mypy@v1.8.0...v1.9.0)
- [github.com/pycqa/pylint: v3.0.3 → v3.1.0](pylint-dev/pylint@v3.0.3...v3.1.0)
- [github.com/astral-sh/ruff-pre-commit: v0.2.1 → v0.3.5](astral-sh/ruff-pre-commit@v0.2.1...v0.3.5)
- [github.com/Lucas-C/pre-commit-hooks: v1.5.4 → v1.5.5](Lucas-C/pre-commit-hooks@v1.5.4...v1.5.5)

* remove noqa

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Kevin Meagher <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and kjmeagher authored Apr 4, 2024
1 parent 8ddb0e2 commit 35cf7e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:
- id: prettier
files: \.ya?ml$
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.12.0
rev: v2.13.0
hooks:
- id: pretty-format-toml
args: [--autofix]
Expand All @@ -30,21 +30,21 @@ repos:
- id: blacken-docs
args: [-l 100]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.9.0
hooks:
- id: mypy
files: simweights
additional_dependencies: [numpy]
exclude: ^contrib/
- repo: https://github.com/pycqa/pylint
rev: v3.0.3
rev: v3.1.0
hooks:
- id: pylint
files: simweights
exclude: ^contrib/
additional_dependencies: [numpy, pandas]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.1
rev: v0.3.5
hooks:
- id: ruff
args: [--fix, --show-fixes]
Expand All @@ -64,7 +64,7 @@ repos:
- id: rst-directive-colons
- id: rst-inline-touching-normal
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.4
rev: v1.5.5
hooks:
- id: forbid-crlf
- id: forbid-tabs
Expand Down
2 changes: 1 addition & 1 deletion src/simweights/_fluxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def __init__(
self.pdgids = tuple(PDGCode(k) for k in fluxes)
self.fracs = list(fluxes.values())
if normalized:
assert sum(self.fracs) == 1.0 # noqa: PLR2004
assert sum(self.fracs) == 1.0

def __call__(self: FixedFractionFlux, energy: ArrayLike, pdgid: ArrayLike) -> NDArray[float64]:
energy_arr, pdgid_arr = broadcast_arrays(energy, pdgid)
Expand Down

0 comments on commit 35cf7e7

Please sign in to comment.