-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
45 lines (44 loc) · 1.1 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
---
# See https://pre-commit.com/ for usage and config
repos:
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.0.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: []
- repo: https://github.com/python-poetry/poetry
rev: 1.7.1
hooks:
- id: poetry-check
- id: poetry-lock
- id: poetry-install
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-yaml
- id: check-toml
- repo: local
hooks:
- id: ruff_check
name: Ruff Check
stages: [commit]
language: system
entry: poetry run ruff check
types: [python]
args: [--fix]
require_serial: false
- id: ruff_format
name: Ruff Format
stages: [commit]
language: system
entry: poetry run ruff format
types: [python]
require_serial: false
- id: pytest
name: pytest
stages: [push]
language: system
entry: poetry run pytest
types: [python]
pass_filenames: false