-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
51 lines (46 loc) · 1.38 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
---
ci:
autoupdate_schedule: quarterly
skip:
- poetry-lock
default_install_hook_types: ["pre-commit", "pre-push"]
default_stages: ["pre-commit"]
repos:
- repo: meta
hooks:
- id: identity
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: no-commit-to-branch
name: Don't allow commits to the main branch
args: ["--branch", "main"]
- id: trailing-whitespace
name: Remove trailing whitespace
- id: end-of-file-fixer
name: Ensure files end with a newline character
exclude_types: ["svg"]
- id: mixed-line-ending
name: Align mixed line ending
- id: check-added-large-files
name: Check for large files
- id: check-json
name: Check JSON files are valid and parseable
- id: check-yaml
name: Check YAML files are valid and parseable
- id: check-toml
name: Check TOML files are valid and parseable
- id: check-ast
name: Validate Python
- repo: https://github.com/python-poetry/poetry
rev: 1.8.0
hooks:
- id: poetry-check
name: Check that the Poetry configuration is valid
- id: poetry-lock
name: Check that the lock file is up-to-date
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
name: Make code pretty