-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
47 lines (47 loc) · 1.36 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
---
repos:
- repo: local
hooks:
- id: poetry-install
name: poetry-install
description: install Poetry dependencies from the lock file
entry: poetry install
language: python
pass_filenames: false
stages: [post-checkout, post-merge]
always_run: true
- id: poetry-check
name: poetry-check
description: validate Poetry config and dependency lock file
entry: poetry check
language: python
pass_filenames: false
files: ^(.*/)?(pyproject\.toml|poetry\.lock)$
- id: ruff-lint
name: ruff-lint
entry: poetry run ruff check
args:
[
--force-exclude,
--config,
pyproject.toml,
--fix,
--show-fixes,
--exit-non-zero-on-fix,
]
language: system
types_or: [python]
require_serial: true # run once for all files
- id: ruff-format
name: ruff-format
entry: poetry run ruff format
args: [--force-exclude, --config, pyproject.toml]
language: system
types_or: [python]
require_serial: true # run once for all files
- id: pyright
name: pyright
entry: poetry run pyright
language: system
types: [python]
require_serial: true # run once for all files