Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update pre-commit hooks #586

Merged
merged 3 commits into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ci:
exclude: ^(attic|src/pygama/flow/datagroup.py)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.5.0"
rev: "v5.0.0"
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -25,7 +25,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/asottile/setup-cfg-fmt
rev: "v2.5.0"
rev: "v2.7.0"
hooks:
- id: setup-cfg-fmt

Expand All @@ -35,18 +35,18 @@ repos:
- id: isort

- repo: https://github.com/asottile/pyupgrade
rev: "v3.15.2"
rev: "v3.19.1"
hooks:
- id: pyupgrade
args: ["--py38-plus"]

- repo: https://github.com/psf/black
rev: "24.3.0"
rev: "24.10.0"
hooks:
- id: black-jupyter

- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.9.0"
rev: "v1.14.1"
hooks:
- id: mypy
files: src
Expand All @@ -59,7 +59,7 @@ repos:
args: [--all]

- repo: https://github.com/PyCQA/flake8
rev: "7.0.0"
rev: "7.1.1"
hooks:
- id: flake8
additional_dependencies: [
Expand All @@ -70,20 +70,20 @@ repos:
args: ["--extend-ignore", "E203,E501"]

- repo: https://github.com/kynan/nbstripout
rev: "0.7.1"
rev: "0.8.1"
hooks:
- id: nbstripout
args: ["--drop-empty-cells",
"--extra-keys", "metadata.kernelspec metadata.language_info"]

- repo: https://github.com/mgedmin/check-manifest
rev: "0.49"
rev: "0.50"
hooks:
- id: check-manifest
stages: [manual]

- repo: https://github.com/codespell-project/codespell
rev: "v2.2.6"
rev: "v2.3.0"
hooks:
- id: codespell
additional_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/notebooks/MathTutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@
"\n",
"`args = [(dist1, [mu, sigma, tau]), (dist2, [mu, sigma])]`\n",
"\n",
"Finally, we would intitalize (with the `fracs` flag in this case, more on that later) \n",
"Finally, we would initialize (with the `fracs` flag in this case, more on that later) \n",
"\n",
"`SumDists(args, area_frac_idxs = [frac_1], frac_flag = \"fracs\", parameter_names=[\"mu\", \"sigma\", \"tau\", \"frac_1\"])`\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion src/pygama/pargen/dsp_optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def iterate_indices(self, indices):
"""iterate given indices [i1, i2, ...] by one.
For easier iteration. The convention here is arbitrary, but its the
order the arrays would be traversed in a series of nested for loops in
the order appearin in dims (first dimension is first for loop, etc):
the order appearing in dims (first dimension is first for loop, etc):
Return False when the grid runs out of indices. Otherwise returns True.
"""
for dim in reversed(range(self.get_n_dimensions())):
Expand Down