-
Notifications
You must be signed in to change notification settings - Fork 42
/
.pre-commit-config.yaml
63 lines (62 loc) · 1.92 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
repos:
- repo: https://github.com/prettier/pre-commit
rev: v2.1.2
hooks:
- id: prettier
- repo: local
hooks:
- id: fix-byte-order-marker
name: Fix Byte Order Marker
entry: hatch run hatch-static-analysis:fix-byte-order-marker
language: system
types: [text]
- id: check-added-large-files
name: Check for added large files
entry: hatch run hatch-static-analysis:check-added-large-files
language: system
- id: check-toml
name: Check Toml
entry: hatch run hatch-static-analysis:check-toml
language: system
types: [toml]
- id: check-yaml
name: Check Yaml
entry: hatch run hatch-static-analysis:check-yaml
language: system
types: [yaml]
- id: trailing-whitespace
name: Trim Trailing Whitespace
entry: hatch run hatch-static-analysis:trailing-whitespace-fixer
language: system
types: [text]
stages: [commit, push, manual]
- id: end-of-file-fixer
name: Fix End of Files
entry: hatch run hatch-static-analysis:end-of-file-fixer
language: system
types: [text]
stages: [commit, push, manual]
- id: ruff
name: ruff check
entry: hatch run hatch-static-analysis:ruff check
args: ["--fix"]
language: system
types: [python]
require_serial: true
- id: black
name: ruff format
entry: hatch run hatch-static-analysis:ruff format
language: system
types: [python]
require_serial: true
- id: codespell
name: codespell
description: Checks for common misspellings in text files.
entry: hatch run hatch-static-analysis:codespell
language: system
types: [text]
- id: tests
name: tests
entry: hatch run test:run
language: system
pass_filenames: false