Skip to content

Commit 3c7d19d

Browse files
committed
prettier: set pass_filenames: false to avoid multiple passes
Updated `.prettierignore` to ingnore the typical Python environment files from `.venv` If you are running pre-commit locally you probably have a Python environment setup. This PR speeds up the prettier hook and avoids multiple passes through the targetted files.
1 parent 9f0950d commit 3c7d19d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ repos:
2424
files: \.(json|md|ya?ml)$
2525
language: node
2626
additional_dependencies: ["prettier@3.7.4"]
27+
pass_filenames: false
2728
stages: [manual]
2829
- id: check-zip-file-is-not-committed
2930
name: disallow zip files

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ build
33
coverage
44
doc/internal/opcode.md
55
tools/lrama
6+
.venv

0 commit comments

Comments
 (0)