|
636 | 636 | - id: trailing-whitespace |
637 | 637 |
|
638 | 638 | - repo: https://github.com/astral-sh/ruff-pre-commit |
639 | | - rev: v0.11.9 |
| 639 | + rev: v0.11.10 |
640 | 640 | hooks: |
641 | | - - id: ruff |
| 641 | + - id: ruff-check |
642 | 642 | args: [--fix, --exit-non-zero-on-fix, --show-fixes] |
643 | 643 | - id: ruff-format |
644 | 644 | </code> |
@@ -730,8 +730,8 @@ <h3>The commit fails</h3> |
730 | 730 | check yaml.........................(no files to check)Skipped |
731 | 731 | fix end of files.......................................Passed |
732 | 732 | trim trailing whitespace...............................Passed |
733 | | - ruff...................................................Failed |
734 | | - - hook id: ruff |
| 733 | + ruff-check.............................................Failed |
| 734 | + - hook id: ruff-check |
735 | 735 | - exit code: 1 |
736 | 736 | - files were modified by this hook |
737 | 737 |
|
@@ -905,9 +905,9 @@ <h3>Modifying hook behavior with command line arguments</h3> |
905 | 905 | <pre> |
906 | 906 | <code data-trim class="language-yaml hide-line-numbers" data-line-numbers="4-5"> |
907 | 907 | - repo: https://github.com/astral-sh/ruff-pre-commit |
908 | | - rev: v0.11.9 |
| 908 | + rev: v0.11.10 |
909 | 909 | hooks: |
910 | | - - id: ruff |
| 910 | + - id: ruff-check |
911 | 911 | args: [--fix, --exit-non-zero-on-fix, --show-fixes] |
912 | 912 | - id: ruff-format |
913 | 913 | </code> |
@@ -1644,7 +1644,13 @@ <h2>4. Configure it as a hook</h2> |
1644 | 1644 | <code>pre-commit</code> can install it): |
1645 | 1645 | </p> |
1646 | 1646 | <p class="fragment fade-in-then-out" data-fragment-index="6"> |
1647 | | - (Optional) Restrict this hook to only run on certain file types: |
| 1647 | + (Optional) Restrict this hook to only run on certain file |
| 1648 | + <a |
| 1649 | + href="https://pre-commit.com/#filtering-files-with-types" |
| 1650 | + target="_blank" |
| 1651 | + rel="noopener noreferrer" |
| 1652 | + >types</a |
| 1653 | + >: |
1648 | 1654 | </p> |
1649 | 1655 | </div> |
1650 | 1656 | <div class="center fragment" data-fragment-index="0"> |
|
0 commit comments