Skip to content

Commit

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

updates:
- [github.com/pre-commit/mirrors-prettier: v3.1.0 → v4.0.0-alpha.8](pre-commit/mirrors-prettier@v3.1.0...v4.0.0-alpha.8)
- [github.com/pre-commit/mirrors-mypy: v1.7.1 → v1.8.0](pre-commit/mirrors-mypy@v1.7.1...v1.8.0)
- [github.com/pycqa/pylint: v3.0.1 → v3.0.3](pylint-dev/pylint@v3.0.1...v3.0.3)
- [github.com/astral-sh/ruff-pre-commit: v0.1.6 → v0.1.9](astral-sh/ruff-pre-commit@v0.1.6...v0.1.9)

* fix self assignments

---------

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 Jan 2, 2024
1 parent 4539355 commit 38261e3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ci:
autoupdate_schedule: quarterly
repos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
rev: v4.0.0-alpha.8
hooks:
- id: prettier
- repo: https://github.com/fsfe/reuse-tool
Expand All @@ -24,21 +24,21 @@ repos:
- id: blacken-docs
args: [-l 100]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.7.1
rev: v1.8.0
hooks:
- id: mypy
files: simweights
additional_dependencies: [numpy]
exclude: ^contrib/
- repo: https://github.com/pycqa/pylint
rev: v3.0.1
rev: v3.0.3
hooks:
- id: pylint
files: simweights
exclude: ^contrib/
additional_dependencies: [numpy, pandas]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
rev: v0.1.9
hooks:
- id: ruff
args: [--fix, --show-fixes]
Expand Down
2 changes: 1 addition & 1 deletion examples/nugen_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def northern_track(energy: ArrayLike) -> ArrayLike:


# get the weights by passing the flux to the weighter
weights = weights = weighter.get_weights(northern_track)
weights = weighter.get_weights(northern_track)

# print some info about the weighting object
print(weighter.tostring(northern_track))
Expand Down
2 changes: 1 addition & 1 deletion examples/triggered_corsika_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
flux = simweights.GaisserH4a()

# get the weights by passing the flux to the weighter
weights = weights = weighter.get_weights(flux)
weights = weighter.get_weights(flux)

# print some info about the weighting object
print(weighter.tostring(flux))
Expand Down
2 changes: 1 addition & 1 deletion examples/without_tableio.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
flux = simweights.GaisserH4a()

# get the weights by passing the flux to the weighter
weights = weights = weighter.get_weights(flux)
weights = weighter.get_weights(flux)

# print some info about the weighting object
print(weighter.tostring(flux))
Expand Down

0 comments on commit 38261e3

Please sign in to comment.