Skip to content

Commit f92ca6a

Browse files
authored
feat(pre-commit): bump versions and update mdformat dependencies (#248)
1 parent 4fa7292 commit f92ca6a

File tree

3 files changed

+22
-20
lines changed

3 files changed

+22
-20
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ repos:
8585
stages: [pre-commit]
8686
# renovate: datasource=github-tags depName=zricethezav/gitleaks
8787
- repo: https://github.com/zricethezav/gitleaks
88-
rev: "v8.28.0"
88+
rev: "v8.30.0"
8989
hooks:
9090
- id: gitleaks
9191
# renovate: datasource=github-tags depName=stefmolin/exif-stripper
@@ -97,15 +97,15 @@ repos:
9797
stages: [pre-commit]
9898
# renovate: datasource=github-tags depName=commitizen-tools/commitizen
9999
- repo: https://github.com/commitizen-tools/commitizen
100-
rev: v4.9.1
100+
rev: v4.11.0
101101
hooks:
102102
- id: commitizen
103103
language: python
104104
stages:
105105
- commit-msg
106106
# renovate: datasource=github-tags depName=editorconfig-checker/editorconfig-checker.python
107107
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
108-
rev: "3.4.0"
108+
rev: "3.6.0"
109109
hooks:
110110
- id: editorconfig-checker
111111
name: Check editorconfig compliance
@@ -119,22 +119,23 @@ repos:
119119
stages: [pre-commit]
120120
# renovate: datasource=github-tags depName=hukkin/mdformat
121121
- repo: https://github.com/hukkin/mdformat
122-
rev: 0.7.22
122+
rev: 1.0.0
123123
hooks:
124124
- id: mdformat
125125
additional_dependencies:
126126
- mdformat-gfm
127-
- mdformat-frontmatter
127+
- mdformat-front-matters
128128
- mdformat-footnote
129129
- mdformat-gfm-alerts
130-
- mdformat-tables
130+
# - mdformat-tables # now included in mdformat-gfm
131131
- mdformat-toc
132132
- mdformat-config
133133
- mdformat-ruff
134134
# - mdformat-shfmt # disable until can pass args (ref: https://github.com/hukkin/mdformat-shfmt/issues/7)
135+
- mdformat-simple-breaks
135136
# renovate: datasource=github-tags depName=igorshubovych/markdownlint-cli
136137
- repo: https://github.com/igorshubovych/markdownlint-cli
137-
rev: "v0.45.0"
138+
rev: "v0.47.0"
138139
hooks:
139140
- id: markdownlint
140141
name: Lint markdown files
@@ -152,7 +153,7 @@ repos:
152153
stages: [pre-commit]
153154
# renovate: datasource=github-tags depName=kynan/nbstripout
154155
- repo: https://github.com/kynan/nbstripout
155-
rev: 0.8.1
156+
rev: 0.8.2
156157
hooks:
157158
- id: nbstripout
158159
name: Strip metadata and outputs from ipynb files
@@ -183,7 +184,7 @@ repos:
183184
### In this case, comment out this block until ".typos.toml" has been committed successfully
184185
# renovate: datasource=github-tags depName=crate-ci/typos
185186
- repo: https://github.com/crate-ci/typos
186-
rev: "v1.38.1"
187+
rev: "v1.40.1"
187188
hooks:
188189
- id: typos
189190
name: Spellcheck with Typos

.ruff.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ ignore = [
8787
"Q002", # redundant w formatter
8888
"Q003", # redundant w formatter
8989
# "S101", # assert
90-
"S311", # allow psuedorandom generators (we use for stats)
90+
"S311", # allow pseudorandom generators (we use for stats)
9191
"SIM105", # allow except: pass
9292
"TRY003", # Avoid specifying messages outside exception class; overly strict, especially for ValueError
9393
"TRY201", # Allow raise without exception name (align with Sonarlint)

template/.pre-commit-config.yaml.jinja

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ repos:
8787
stages: [pre-commit]
8888
# renovate: datasource=github-tags depName=zricethezav/gitleaks
8989
- repo: https://github.com/zricethezav/gitleaks
90-
rev: "v8.28.0"
90+
rev: "v8.30.0"
9191
hooks:
9292
- id: gitleaks
9393
# renovate: datasource=github-tags depName=stefmolin/exif-stripper
@@ -100,7 +100,7 @@ repos:
100100
{%- if conventional_commits %}
101101
# renovate: datasource=github-tags depName=commitizen-tools/commitizen
102102
- repo: https://github.com/commitizen-tools/commitizen
103-
rev: v4.9.1
103+
rev: v4.11.0
104104
hooks:
105105
- id: commitizen
106106
language: python
@@ -109,7 +109,7 @@ repos:
109109
{%- endif %}{% if editorconfig %}
110110
# renovate: datasource=github-tags depName=editorconfig-checker/editorconfig-checker.python
111111
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
112-
rev: "3.4.0"
112+
rev: "3.6.0"
113113
hooks:
114114
- id: editorconfig-checker
115115
name: Check editorconfig compliance
@@ -124,22 +124,23 @@ repos:
124124
{%- endif %}{% if markdown %}
125125
# renovate: datasource=github-tags depName=hukkin/mdformat
126126
- repo: https://github.com/hukkin/mdformat
127-
rev: 0.7.22
127+
rev: 1.0.0
128128
hooks:
129129
- id: mdformat
130130
additional_dependencies:
131131
- mdformat-gfm
132-
- mdformat-frontmatter
132+
- mdformat-front-matters
133133
- mdformat-footnote
134134
- mdformat-gfm-alerts
135-
- mdformat-tables
135+
# - mdformat-tables # now included in mdformat-gfm
136136
- mdformat-toc
137137
- mdformat-config
138138
- mdformat-ruff
139139
# - mdformat-shfmt # disable until can pass args (ref: https://github.com/hukkin/mdformat-shfmt/issues/7)
140+
- mdformat-simple-breaks
140141
# renovate: datasource=github-tags depName=igorshubovych/markdownlint-cli
141142
- repo: https://github.com/igorshubovych/markdownlint-cli
142-
rev: "v0.45.0"
143+
rev: "v0.47.0"
143144
hooks:
144145
- id: markdownlint
145146
name: Lint markdown files
@@ -158,7 +159,7 @@ repos:
158159
stages: [pre-commit]
159160
# renovate: datasource=github-tags depName=kynan/nbstripout
160161
- repo: https://github.com/kynan/nbstripout
161-
rev: 0.8.1
162+
rev: 0.8.2
162163
hooks:
163164
- id: nbstripout
164165
name: Strip metadata and outputs from ipynb files
@@ -184,7 +185,7 @@ repos:
184185
stages: [pre-commit]
185186
# renovate: datasource=github-tags depName=scop/pre-commit-shfmt versioning=loose
186187
- repo: https://github.com/scop/pre-commit-shfmt
187-
rev: "v3.8.0-1"
188+
rev: "v3.12.0-2"
188189
hooks:
189190
- id: shfmt
190191
name: Format shell scripts
@@ -224,7 +225,7 @@ repos:
224225
### In this case, comment out this block until ".typos.toml" has been committed successfully
225226
# renovate: datasource=github-tags depName=crate-ci/typos
226227
- repo: https://github.com/crate-ci/typos
227-
rev: "v1.38.1"
228+
rev: "v1.40.1"
228229
hooks:
229230
- id: typos
230231
name: Spellcheck with Typos

0 commit comments

Comments
 (0)