-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
45 lines (45 loc) · 1.29 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
---
default_language_version:
python: python3.9
default_stages: [commit, push]
repos:
- hooks:
- entry: poetry run black .
id: black
language: system
name: black
types: [python]
- entry: poetry run flake8 .
id: flake8
language: system
name: flake8
types: [python]
repo:
local
# language: system
# types: [python]
# - id: detect_secrets
# name: detect_secrets
# entry: poetry run detect-secrets scan --baseline .secrets.baseline .
# language: system
# types: [python]
# exclude: package.lock.json
# - id: detect-secrets
# name: detect-secrets
# # entry: git ls-files -z | xargs -0 detect-secrets-hook --baseline .secrets.baseline
# entry: git diff --staged --name-only -z | xargs -0 detect-secrets-hook --baseline .secrets.baseline
# language: system
# types: [python]
# - id: ruff
# name: ruff
# entry: poetry run ruff --fix --no-cache --force-exclude .
# - id: isort
# name: isort
# entry: poetry run isort .
# language: system
# types: [python]
# - id: poetry-check
# name: poetry check
# entry: poetry check
# language: system
# types: [bash]