diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 717e0c5..79b86e0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ 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 @@ -15,7 +15,7 @@ repos: 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 @@ -23,13 +23,13 @@ repos: 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 @@ -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] diff --git a/tests/test_weighter.py b/tests/test_weighter.py index ba98309..0ebc2b9 100755 --- a/tests/test_weighter.py +++ b/tests/test_weighter.py @@ -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)