Skip to content

Commit

Permalink
don't pass in the root directory to prettier (unconditionally) as it …
Browse files Browse the repository at this point in the history
…makes it scan the whole repo. Rely in pre-commit passing in the relevant files instead. Also extend .gitignore to include the fuzz corpus
  • Loading branch information
arvidn committed Aug 8, 2024
1 parent ad3235e commit 437c849
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ venv/
node_modules/
.mypy_cache/
.pytest_cache/
crates/chia-bls/fuzz/corpus
crates/chia-consensus/fuzz/corpus
crates/chia-protocol/fuzz/corpus
crates/chia-traits/fuzz/corpus
crates/chia-utils/fuzz/corpus
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repos:
hooks:
- id: prettier
name: Prettier
entry: npx prettier --write .
entry: npx prettier --write
language: node
files: \.(js|jsx|ts|tsx|json|css|scss|md|yml|yaml)$
types: [file]
Expand Down

0 comments on commit 437c849

Please sign in to comment.