diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 28da8bf..4c7c4de 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -32,8 +32,11 @@ jobs: cache-dependency-path: pyproject.toml - name: Install SimWeights run: | - python3 -m pip install flit + python3 -m pip install flit 'numpy<2' python3 -m flit install --symlink --deps=production --extras=test + if [ "$RUNNER_OS" == "Linux" ]; then + python3 -m pip install nuflux + fi - name: Download Test Data run: curl -u icecube:${{secrets.ICECUBE_PASSWORD}} https://convey.icecube.wisc.edu/data/user/kmeagher/simweights_testdata.tar.gz | tar xz - name: Run Tests diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4548f8a..0758ef5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,26 +25,26 @@ repos: hooks: - id: codespell - repo: https://github.com/adamchainz/blacken-docs - rev: "1.16.0" + rev: "1.18.0" hooks: - id: blacken-docs args: [-l 100] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.0 + rev: v1.10.1 hooks: - id: mypy files: simweights additional_dependencies: [numpy] exclude: ^contrib/ - repo: https://github.com/pycqa/pylint - rev: v3.2.2 + rev: v3.2.4 hooks: - id: pylint files: simweights exclude: ^contrib/ additional_dependencies: [numpy, pandas] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.6 + rev: v0.5.0 hooks: - id: ruff args: [--fix, --show-fixes] diff --git a/src/simweights/_utils.py b/src/simweights/_utils.py index c63cbe4..b3ca7fe 100644 --- a/src/simweights/_utils.py +++ b/src/simweights/_utils.py @@ -7,7 +7,7 @@ from typing import TYPE_CHECKING, Any, Union import numpy as np -from numpy.random import Generator, RandomState +from numpy.random import Generator, RandomState # pylint: disable=no-name-in-module from ._pdgcode import PDGCode