From 3c7d19d41bc2e0d57ff84309fda6c0936ccb2b89 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Tue, 30 Dec 2025 01:51:58 +1000 Subject: [PATCH] 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. --- .pre-commit-config.yaml | 1 + .prettierignore | 1 + 2 files changed, 2 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f85fa50a8..b7d99cae0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,6 +24,7 @@ repos: files: \.(json|md|ya?ml)$ language: node additional_dependencies: ["prettier@3.7.4"] + pass_filenames: false stages: [manual] - id: check-zip-file-is-not-committed name: disallow zip files diff --git a/.prettierignore b/.prettierignore index 0728a7c3a..8ed001b58 100644 --- a/.prettierignore +++ b/.prettierignore @@ -3,3 +3,4 @@ build coverage doc/internal/opcode.md tools/lrama +.venv