-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
52 lines (46 loc) · 1.05 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
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-case-conflict
- id: requirements-txt-fixer
- id: check-json
- id: pretty-format-json
args: [--autofix, --no-ensure-ascii, --no-sort-keys]
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.8.0
hooks:
- id: pretty-format-yaml
require_serial: true
args: [--autofix, --indent, '2']
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
language_version: python3
require_serial: true
types: [python]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.261
hooks:
- id: ruff
args: [--fix]
- repo: local
hooks:
- id: pyright
name: pyright
entry: poetry run pyright
verbose: true
language: system
pass_filenames: false
- repo: local
hooks:
- id: deptry
name: deptry
entry: poetry run deptry .
verbose: true
language: system
pass_filenames: false