-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
31 lines (28 loc) · 1.13 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
exclude: testing/baselines
- id: end-of-file-fixer
exclude: testing/baselines
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.0
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
hooks:
- id: prettier
# prettier has trouble parsing our the Jinja templates. I looked into adding
# https://github.com/davidodenwald/prettier-plugin-jinja-template
# as an `additional_dependencies`, but couldn't make it work even with
# https://github.com/prettier/plugin-xml/issues/17#issuecomment-555445966.
exclude: zeek-package-website/templates/.*
exclude: zeek-package-website/app/api/aggregate.meta|zeek-package-website/app/api/search/json_files.*|zeek-package-website/tests/sample.json