-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
39 lines (39 loc) · 1.18 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
types: [file, python]
- id: check-added-large-files
- repo: local
hooks:
- id: black
name: black
entry: poetry run black --config pyproject.toml
types: [file, python]
language: system
- id: ruff-lint
name: ruff-lint
entry: poetry run ruff check --config pyproject.toml --fix
types: [file, python]
language: system
- id: ruff-format
name: ruff-format
entry: poetry run ruff format --config pyproject.toml
types: [file, python]
language: system
- id: mypy
name: mypy
entry: poetry run mypy --config-file pyproject.toml
types: [file, python]
language: system
- id: flake8
name: flake8
entry: poetry run pflake8
types: [file, python]
language: system
- id: sphinx-lint
name: sphinx-lint
entry: poetry run sphinx-lint --enable all --disable leaked-markup --jobs 1 --max-line-length 120 -i docs/_implementations docs
types: [rst]
language: system