diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index da600985..ee7dfca6 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -58,7 +58,7 @@ repos:
- types-PyYAML
- repo: https://github.com/pre-commit/mirrors-prettier
- rev: "v3.0.3"
+ rev: "v3.1.0"
hooks:
- id: prettier
types_or: [yaml, markdown, html, css, scss, javascript, json]
diff --git a/docs/_includes/interactive_repo_review.html b/docs/_includes/interactive_repo_review.html
index 443adbaa..ad19b2b7 100644
--- a/docs/_includes/interactive_repo_review.html
+++ b/docs/_includes/interactive_repo_review.html
@@ -20,10 +20,10 @@
,
diff --git a/docs/assets/js/webapp.js b/docs/assets/js/webapp.js
index d8731ab9..91a4bd28 100644
--- a/docs/assets/js/webapp.js
+++ b/docs/assets/js/webapp.js
@@ -65,8 +65,8 @@ function Results(props) {
result.state === false
? "error.main"
: result.state === true
- ? "text.primary"
- : "info.main";
+ ? "text.primary"
+ : "info.main";
const details =
result.state === false ? (
@@ -75,15 +75,15 @@ function Results(props) {
result.state === false
? "error"
: result.state === true
- ? "success"
- : "info";
+ ? "success"
+ : "info";
const icon = (
{result.state === false
? "report"
: result.state === true
- ? "check_box"
- : "info"}
+ ? "check_box"
+ : "info"}
);
diff --git a/docs/pages/guides/style.md b/docs/pages/guides/style.md
index 51283f17..8fb781f6 100644
--- a/docs/pages/guides/style.md
+++ b/docs/pages/guides/style.md
@@ -346,7 +346,7 @@ use the manual stage, it's opt-in instead of automatic.
```yaml
- repo: https://github.com/hadialqattan/pycln
- rev: "v2.3.0"
+ rev: "v2.4.0"
hooks:
- id: pycln
args: [--all]
@@ -741,7 +741,7 @@ following pre-commit config:
```yaml
- repo: https://github.com/pre-commit/mirrors-clang-format
- rev: "v17.0.4"
+ rev: "v17.0.5"
hooks:
- id: clang-format
types_or: [c++, c, cuda]
@@ -770,7 +770,7 @@ number of different file types. An example of usage:
```yaml
- repo: https://github.com/pre-commit/mirrors-prettier
- rev: "v3.0.3"
+ rev: "v3.1.0"
hooks:
- id: prettier
types_or: [yaml, markdown, html, css, scss, javascript, json]
diff --git a/noxfile.py b/noxfile.py
index f8f3b7e5..8d780eeb 100644
--- a/noxfile.py
+++ b/noxfile.py
@@ -363,15 +363,11 @@ def pc_bump(session: nox.Session) -> None:
for proj, (old_version, space) in old_versions.items():
if proj not in versions:
- versions[proj] = session.run("lastversion", proj, silent=True).strip()
+ versions[proj] = session.run(
+ "lastversion", "--at=github", "--format=tag", proj, silent=True
+ ).strip()
new_version = versions[proj]
- if old_version.lstrip("v") == new_version:
- continue
-
- if old_version.startswith("v"):
- new_version = f"v{new_version}"
-
before = PC_REPL_LINE.format(proj, old_version, space)
after = PC_REPL_LINE.format(proj, new_version, space)
diff --git a/{{cookiecutter.project_name}}/.pre-commit-config.yaml b/{{cookiecutter.project_name}}/.pre-commit-config.yaml
index 1be43028..7d89b640 100644
--- a/{{cookiecutter.project_name}}/.pre-commit-config.yaml
+++ b/{{cookiecutter.project_name}}/.pre-commit-config.yaml
@@ -38,7 +38,7 @@ repos:
- id: rst-inline-touching-normal
- repo: https://github.com/pre-commit/mirrors-prettier
- rev: "v3.0.3"
+ rev: "v3.1.0"
hooks:
- id: prettier
types_or: [yaml, markdown, html, css, scss, javascript, json]
@@ -63,7 +63,7 @@ repos:
{%- if cookiecutter.backend in ["pybind11", "skbuild", "mesonpy"] %}
- repo: https://github.com/pre-commit/mirrors-clang-format
- rev: "v17.0.4"
+ rev: "v17.0.5"
hooks:
- id: clang-format
types_or: [c++, c, cuda]