Skip to content

Commit

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

updates:
- [github.com/adamchainz/blacken-docs: 1.16.0 → 1.18.0](adamchainz/blacken-docs@1.16.0...1.18.0)
- [github.com/pre-commit/mirrors-mypy: v1.10.0 → v1.10.1](pre-commit/mirrors-mypy@v1.10.0...v1.10.1)
- [github.com/pycqa/pylint: v3.2.2 → v3.2.4](pylint-dev/pylint@v3.2.2...v3.2.4)
- [github.com/astral-sh/ruff-pre-commit: v0.4.6 → v0.5.0](astral-sh/ruff-pre-commit@v0.4.6...v0.5.0)

* exclude numpy 2.0 from ci

* fix dumb error from pylint

---------

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 Jul 2, 2024
1 parent edfc9a5 commit c2241af
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion src/simweights/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c2241af

Please sign in to comment.