Skip to content

Commit

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

updates:
- [github.com/pre-commit/mirrors-prettier: v3.0.2 → v3.0.3](pre-commit/mirrors-prettier@v3.0.2...v3.0.3)
- [github.com/psf/black: 23.7.0 → 23.9.1](psf/black@23.7.0...23.9.1)
- https://github.com/charliermarsh/ruff-pre-commithttps://github.com/astral-sh/ruff-pre-commit
- [github.com/astral-sh/ruff-pre-commit: v0.0.284 → v0.0.292](astral-sh/ruff-pre-commit@v0.0.284...v0.0.292)
- [github.com/pycqa/pylint: v3.0.0a7 → v3.0.0](pylint-dev/pylint@v3.0.0a7...v3.0.0)
- [github.com/codespell-project/codespell: v2.2.5 → v2.2.6](codespell-project/codespell@v2.2.5...v2.2.6)

* remove unnescessary initial value in range caught by ruff

---------

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 Oct 4, 2023
1 parent 0e3b011 commit e6106df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,29 @@ ci:
autoupdate_schedule: quarterly
repos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.2
rev: v3.0.3
hooks:
- id: prettier
- repo: https://github.com/fsfe/reuse-tool
rev: v2.1.0
hooks:
- id: reuse
- repo: https://github.com/psf/black
rev: 23.7.0
rev: 23.9.1
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
rev: "1.16.0"
hooks:
- id: blacken-docs
args: [-l 100]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.284
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.292
hooks:
- id: ruff
args: [--fix, --show-fixes]
- repo: https://github.com/pycqa/pylint
rev: v3.0.0a7
rev: v3.0.0
hooks:
- id: pylint
files: simweights
Expand All @@ -43,7 +43,7 @@ repos:
additional_dependencies: [numpy]
exclude: ^contrib/
- repo: https://github.com/codespell-project/codespell
rev: v2.2.5
rev: v2.2.6
hooks:
- id: codespell
args: [-L, livetime]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_weighter.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def check_weight(self, weighter, N, val):
weights = weighter.get_weights(flux)
self.assertAlmostEqual(weights.sum(), flux * val, -2)

flux = list(range(0, N))
flux = list(range(N))
weights = weighter.get_weights(flux)
np.testing.assert_allclose(weights, np.array(flux) * val / N)

Expand Down

0 comments on commit e6106df

Please sign in to comment.