Browse Source

ci(pre-commit): bump pre-commit hooks + fixes of found typos

Alex Turbov 1 week ago
parent
commit
472a04ab9e
2 changed files with 8 additions and 5 deletions
  1. 7 4
      .pre-commit-config.yaml
  2. 1 1
      Help/release/dev/UseJava-include-modules.rst

+ 7 - 4
.pre-commit-config.yaml

@@ -62,8 +62,11 @@ repos:
                   | define_property/define_property-INITIALIZE_FROM_VARIABLE-invalid_[12]-result\.txt
                   | FindMatlab/MatlabTest2-stderr\.txt
                   | string/UTF-(16|32)LE\.txt
-                  | Syntax/BOM-UTF-(16|32)-LE.cmake
-                  | Syntax/CommandEOF\.cmake
+                  | Syntax/(
+                        OneCharacter
+                      | (Broken-)?BOM-UTF-(16|32)-[BL]E
+                      | CommandEOF
+                      )\.cmake
                   | VS10Project/shader2?\.hlsl
                   )
               | SourceGroups/README\.txt
@@ -81,7 +84,7 @@ repos:
         pass_filenames: false
 
   - repo: https://github.com/sphinx-contrib/sphinx-lint
-    rev: v1.0.1
+    rev: v1.0.2
     hooks:
       - id: sphinx-lint
         # NOTE Looks like `bad-dedent` gives too many false-positives.
@@ -110,7 +113,7 @@ repos:
 
     # NOTE See BUG https://github.com/crate-ci/typos/issues/390
   - repo: https://github.com/adhtruong/mirrors-typos
-    rev: v1.39.0
+    rev: v1.39.2
     hooks:
       - id: typos
         # NOTE Override hook's default args to prevent automatic

+ 1 - 1
Help/release/dev/UseJava-include-modules.rst

@@ -2,6 +2,6 @@ UseJava-include-modules
 -----------------------
 
 * The :module:`UseJava` module's :command:`add_jar` command now accepts a new
-  option `INCLUDE_MODULES` that adds its arguments to the `--module-path`
+  option ``INCLUDE_MODULES`` that adds its arguments to the ``--module-path``
   argument to the Java compiler. This allows building JAR files that use JPMS
   modules in their build.