-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
64 lines (64 loc) · 1.91 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
64
default_install_hook_types:
- pre-commit
- pre-push
minimum_pre_commit_version: 4.0.0
repos:
- repo: local
hooks:
- id: poetry-check
entry: poetry check
files: ^(.*/)?pyproject\.toml$
language: system
name: poetry-check
pass_filenames: false
- id: poetry-lock
entry: poetry lock --no-update
files: ^(.*/)?(poetry\.lock|pyproject\.toml)$
language: system
name: poetry-lock
pass_filenames: false
- id: mypy
entry: poetry run mypy
language: system
name: mypy
pass_filenames: false
- id: stubtest
entry: poetry run stubtest --ignore-missing-stub --mypy-config-file pyproject.toml soco
language: system
name: stubtest
pass_filenames: false
- id: pytest
entry: poetry run pytest --cov=src --cov-report term-missing
language: system
name: pytest
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # frozen: v5.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-illegal-windows-names
- id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-vcs-permalinks
- id: check-xml
- id: check-yaml
- id: destroyed-symlinks
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: forbid-submodules
- id: mixed-line-ending
- id: pretty-format-json
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 18ba2d02dcafd1cc608bd83eff6c17fb0108ca71 # frozen: v0.9.1
hooks:
- id: ruff
args:
- --fix
- --exit-non-zero-on-fix
- id: ruff-format