Skip to content

Commit 46209b7

Browse files
committed
Update to ruff-check ID
1 parent f47ef61 commit 46209b7

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

index.html

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -636,9 +636,9 @@ <h3>
636636
- id: trailing-whitespace
637637

638638
- repo: https://github.com/astral-sh/ruff-pre-commit
639-
rev: v0.11.9
639+
rev: v0.11.10
640640
hooks:
641-
- id: ruff
641+
- id: ruff-check
642642
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
643643
- id: ruff-format
644644
</code>
@@ -730,8 +730,8 @@ <h3>The commit fails</h3>
730730
check yaml.........................(no files to check)Skipped
731731
fix end of files.......................................Passed
732732
trim trailing whitespace...............................Passed
733-
ruff...................................................Failed
734-
- hook id: ruff
733+
ruff-check.............................................Failed
734+
- hook id: ruff-check
735735
- exit code: 1
736736
- files were modified by this hook
737737

@@ -905,9 +905,9 @@ <h3>Modifying hook behavior with command line arguments</h3>
905905
<pre>
906906
<code data-trim class="language-yaml hide-line-numbers" data-line-numbers="4-5">
907907
- repo: https://github.com/astral-sh/ruff-pre-commit
908-
rev: v0.11.9
908+
rev: v0.11.10
909909
hooks:
910-
- id: ruff
910+
- id: ruff-check
911911
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
912912
- id: ruff-format
913913
</code>
@@ -1644,7 +1644,13 @@ <h2>4. Configure it as a hook</h2>
16441644
<code>pre-commit</code> can install it):
16451645
</p>
16461646
<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+
>:
16481654
</p>
16491655
</div>
16501656
<div class="center fragment" data-fragment-index="0">

0 commit comments

Comments
 (0)