Skip to content

Commit acb5611

Browse files
authored
chore: clean up pre-commit update job a little (#316)
* chore: bump versions in webapp Signed-off-by: Henry Schreiner <[email protected]> * chore: simplify pc update Signed-off-by: Henry Schreiner <[email protected]> * Apply suggestions from code review --------- Signed-off-by: Henry Schreiner <[email protected]>
1 parent 914008d commit acb5611

File tree

6 files changed

+18
-22
lines changed

6 files changed

+18
-22
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ repos:
5858
- types-PyYAML
5959

6060
- repo: https://github.com/pre-commit/mirrors-prettier
61-
rev: "v3.0.3"
61+
rev: "v3.1.0"
6262
hooks:
6363
- id: prettier
6464
types_or: [yaml, markdown, html, css, scss, javascript, json]

docs/_includes/interactive_repo_review.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
<App
2121
header={false}
2222
deps={[
23-
"sp-repo-review==2023.10.27",
24-
"repo-review==0.10.0",
23+
"sp-repo-review==2023.11.17",
24+
"repo-review==0.10.1",
2525
"validate-pyproject==0.15",
26-
"scikit-build-core==0.6.0",
26+
"scikit-build-core==0.6.1",
2727
"cibuildwheel==2.16.2",
2828
]}
2929
/>,

docs/assets/js/webapp.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ function Results(props) {
6565
result.state === false
6666
? "error.main"
6767
: result.state === true
68-
? "text.primary"
69-
: "info.main";
68+
? "text.primary"
69+
: "info.main";
7070
const details =
7171
result.state === false ? (
7272
<span dangerouslySetInnerHTML={{ __html: result.err_msg }} />
@@ -75,15 +75,15 @@ function Results(props) {
7575
result.state === false
7676
? "error"
7777
: result.state === true
78-
? "success"
79-
: "info";
78+
? "success"
79+
: "info";
8080
const icon = (
8181
<MaterialUI.Icon color={color}>
8282
{result.state === false
8383
? "report"
8484
: result.state === true
85-
? "check_box"
86-
: "info"}
85+
? "check_box"
86+
: "info"}
8787
</MaterialUI.Icon>
8888
);
8989

docs/pages/guides/style.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ use the manual stage, it's opt-in instead of automatic.
346346

347347
```yaml
348348
- repo: https://github.com/hadialqattan/pycln
349-
rev: "v2.3.0"
349+
rev: "v2.4.0"
350350
hooks:
351351
- id: pycln
352352
args: [--all]
@@ -741,7 +741,7 @@ following pre-commit config:
741741

742742
```yaml
743743
- repo: https://github.com/pre-commit/mirrors-clang-format
744-
rev: "v17.0.4"
744+
rev: "v17.0.5"
745745
hooks:
746746
- id: clang-format
747747
types_or: [c++, c, cuda]
@@ -770,7 +770,7 @@ number of different file types. An example of usage:
770770

771771
```yaml
772772
- repo: https://github.com/pre-commit/mirrors-prettier
773-
rev: "v3.0.3"
773+
rev: "v3.1.0"
774774
hooks:
775775
- id: prettier
776776
types_or: [yaml, markdown, html, css, scss, javascript, json]

noxfile.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -363,15 +363,11 @@ def pc_bump(session: nox.Session) -> None:
363363

364364
for proj, (old_version, space) in old_versions.items():
365365
if proj not in versions:
366-
versions[proj] = session.run("lastversion", proj, silent=True).strip()
366+
versions[proj] = session.run(
367+
"lastversion", "--at=github", "--format=tag", proj, silent=True
368+
).strip()
367369
new_version = versions[proj]
368370

369-
if old_version.lstrip("v") == new_version:
370-
continue
371-
372-
if old_version.startswith("v"):
373-
new_version = f"v{new_version}"
374-
375371
before = PC_REPL_LINE.format(proj, old_version, space)
376372
after = PC_REPL_LINE.format(proj, new_version, space)
377373

{{cookiecutter.project_name}}/.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ repos:
3838
- id: rst-inline-touching-normal
3939

4040
- repo: https://github.com/pre-commit/mirrors-prettier
41-
rev: "v3.0.3"
41+
rev: "v3.1.0"
4242
hooks:
4343
- id: prettier
4444
types_or: [yaml, markdown, html, css, scss, javascript, json]
@@ -63,7 +63,7 @@ repos:
6363
{%- if cookiecutter.backend in ["pybind11", "skbuild", "mesonpy"] %}
6464

6565
- repo: https://github.com/pre-commit/mirrors-clang-format
66-
rev: "v17.0.4"
66+
rev: "v17.0.5"
6767
hooks:
6868
- id: clang-format
6969
types_or: [c++, c, cuda]

0 commit comments

Comments
 (0)