forked from ansible/eda-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
37 lines (37 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
---
repos:
- repo: local
hooks:
# CMD logic allows using task or go-task, depending on what is installed
- id: black
name: black
language: system
types: [python]
entry: command -v task > /dev/null && CMD=task || CMD=go-task; ${CMD} lint:black --
- id: isort
name: isort
language: system
types: [python]
entry: command -v task > /dev/null && CMD=task || CMD=go-task; ${CMD} lint:isort --
- id: ruff
name: ruff
language: system
types: [python]
entry: command -v task > /dev/null && CMD=task || CMD=go-task; ${CMD} lint:ruff --
- id: flake8
name: flake8
language: system
types: [python]
entry: command -v task > /dev/null && CMD=task || CMD=go-task; ${CMD} lint:flake8 --
- id: migrations
name: migrations
language: system
types: [python]
pass_filenames: false
entry: command -v task > /dev/null && CMD=task || CMD=go-task; ${CMD} lint:migrations
- repo: https://github.com/python-poetry/poetry
rev: '1.4.0'
hooks:
- id: poetry-check
- id: poetry-lock
args: ["--check"]