forked from elementary-data/elementary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
45 lines (39 loc) · 996 Bytes
/
.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
repos:
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.0"
hooks:
- id: prettier
exclude: \.html$|^docs/
- repo: https://github.com/crate-ci/typos
rev: v1.16.6
hooks:
- id: typos
exclude: index\.html$|elementary_output\.json$
- repo: local
hooks:
- id: no_commit
name: Check for NO_COMMIT marker
entry: bash -c "git diff --cached -U0 | (! grep NO_COMMIT)"
language: system
require_serial: true
pass_filenames: false
- repo: local
hooks:
- id: mypy
name: mypy
entry: mypy --no-error-summary
language: system
files: ^elementary/.*\.py$