Skip to content

Commit 29d9b63

Browse files
chore: update pre-commit hooks (#586)
* chore: update pre-commit hooks updates: - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v5.0.0](pre-commit/pre-commit-hooks@v4.5.0...v5.0.0) - [github.com/asottile/setup-cfg-fmt: v2.5.0 → v2.7.0](asottile/setup-cfg-fmt@v2.5.0...v2.7.0) - [github.com/asottile/pyupgrade: v3.15.2 → v3.19.1](asottile/pyupgrade@v3.15.2...v3.19.1) - [github.com/psf/black: 24.3.0 → 24.10.0](psf/black@24.3.0...24.10.0) - [github.com/pre-commit/mirrors-mypy: v1.9.0 → v1.14.1](pre-commit/mirrors-mypy@v1.9.0...v1.14.1) - [github.com/PyCQA/flake8: 7.0.0 → 7.1.1](PyCQA/flake8@7.0.0...7.1.1) - [github.com/kynan/nbstripout: 0.7.1 → 0.8.1](kynan/nbstripout@0.7.1...0.8.1) - [github.com/mgedmin/check-manifest: 0.49 → 0.50](mgedmin/check-manifest@0.49...0.50) - [github.com/codespell-project/codespell: v2.2.6 → v2.3.0](codespell-project/codespell@v2.2.6...v2.3.0) * fix issues detected by pre-commit --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Luigi Pertoldi <luigi.pertoldi@protonmail.com>
1 parent decb018 commit 29d9b63

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ci:
66
exclude: ^(attic|src/pygama/flow/datagroup.py)
77
repos:
88
- repo: https://github.com/pre-commit/pre-commit-hooks
9-
rev: "v4.5.0"
9+
rev: "v5.0.0"
1010
hooks:
1111
- id: check-added-large-files
1212
- id: check-case-conflict
@@ -25,7 +25,7 @@ repos:
2525
- id: trailing-whitespace
2626

2727
- repo: https://github.com/asottile/setup-cfg-fmt
28-
rev: "v2.5.0"
28+
rev: "v2.7.0"
2929
hooks:
3030
- id: setup-cfg-fmt
3131

@@ -35,18 +35,18 @@ repos:
3535
- id: isort
3636

3737
- repo: https://github.com/asottile/pyupgrade
38-
rev: "v3.15.2"
38+
rev: "v3.19.1"
3939
hooks:
4040
- id: pyupgrade
4141
args: ["--py38-plus"]
4242

4343
- repo: https://github.com/psf/black
44-
rev: "24.3.0"
44+
rev: "24.10.0"
4545
hooks:
4646
- id: black-jupyter
4747

4848
- repo: https://github.com/pre-commit/mirrors-mypy
49-
rev: "v1.9.0"
49+
rev: "v1.14.1"
5050
hooks:
5151
- id: mypy
5252
files: src
@@ -59,7 +59,7 @@ repos:
5959
args: [--all]
6060

6161
- repo: https://github.com/PyCQA/flake8
62-
rev: "7.0.0"
62+
rev: "7.1.1"
6363
hooks:
6464
- id: flake8
6565
additional_dependencies: [
@@ -70,20 +70,20 @@ repos:
7070
args: ["--extend-ignore", "E203,E501"]
7171

7272
- repo: https://github.com/kynan/nbstripout
73-
rev: "0.7.1"
73+
rev: "0.8.1"
7474
hooks:
7575
- id: nbstripout
7676
args: ["--drop-empty-cells",
7777
"--extra-keys", "metadata.kernelspec metadata.language_info"]
7878

7979
- repo: https://github.com/mgedmin/check-manifest
80-
rev: "0.49"
80+
rev: "0.50"
8181
hooks:
8282
- id: check-manifest
8383
stages: [manual]
8484

8585
- repo: https://github.com/codespell-project/codespell
86-
rev: "v2.2.6"
86+
rev: "v2.3.0"
8787
hooks:
8888
- id: codespell
8989
additional_dependencies:

docs/source/notebooks/MathTutorial.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@
976976
"\n",
977977
"`args = [(dist1, [mu, sigma, tau]), (dist2, [mu, sigma])]`\n",
978978
"\n",
979-
"Finally, we would intitalize (with the `fracs` flag in this case, more on that later) \n",
979+
"Finally, we would initialize (with the `fracs` flag in this case, more on that later) \n",
980980
"\n",
981981
"`SumDists(args, area_frac_idxs = [frac_1], frac_flag = \"fracs\", parameter_names=[\"mu\", \"sigma\", \"tau\", \"frac_1\"])`\n",
982982
"\n",

src/pygama/pargen/dsp_optimize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def iterate_indices(self, indices):
119119
"""iterate given indices [i1, i2, ...] by one.
120120
For easier iteration. The convention here is arbitrary, but its the
121121
order the arrays would be traversed in a series of nested for loops in
122-
the order appearin in dims (first dimension is first for loop, etc):
122+
the order appearing in dims (first dimension is first for loop, etc):
123123
Return False when the grid runs out of indices. Otherwise returns True.
124124
"""
125125
for dim in reversed(range(self.get_n_dimensions())):

0 commit comments

Comments
 (0)