-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
73 lines (73 loc) · 1.88 KB
/
.pre-commit-config.yaml
File metadata and controls
73 lines (73 loc) · 1.88 KB
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
64
65
66
67
68
69
70
71
72
73
---
repos:
# Python
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-case-conflict
- id: check-added-large-files
- id: check-symlinks
- id: detect-private-key
- id: check-merge-conflict
- id: check-ast
- id: check-builtin-literals
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: end-of-file-fixer
- id: trailing-whitespace
- id: name-tests-test
exclude: ^tests/frozen_clock.py|tests/assert_uuid.py|tests/frozen_pseudo_random_generator.py|tests/const.py$
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/PyCQA/autoflake
rev: v2.0.2
hooks:
- id: autoflake
- repo: local
hooks:
- id: pyright
name: pyright
entry: pyright
language: node
pass_filenames: true
types: [python]
additional_dependencies: [pyright@1.1.303]
exclude: ^tests/.*$
- repo: https://github.com/csachs/pyproject-flake8
rev: v6.0.0.post1
hooks:
- id: pyproject-flake8
# JSON
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: pretty-format-json
args: [--autofix]
# YAML
- repo: https://github.com/lyz-code/yamlfix
rev: 1.9.0
hooks:
- id: yamlfix
exclude: ^.*poetry.lock$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: sort-simple-yaml
# TOML
- repo: https://github.com/pappasam/toml-sort
rev: v0.23.0
hooks:
- id: toml-sort
args: [-a, -i]
# Shell
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: shellcheck
exclude: ^.poetry.lock|\.devcontainer/devcontainer\.json$