-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pre-commit-config.yaml
47 lines (41 loc) · 1.17 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
default_language_version:
python: python3.11
files: '.py'
exclude: ".env,.yml,.gitignore,.git,.md,.txt"
default_stages: [push, commit]
repos:
- repo: https://github.com/PyCQA/bandit
rev: 1.7.4
hooks:
- id: bandit
args: ["-c", "pyproject.toml"]
name: Bandit
stages: [commit]
additional_dependencies: ["bandit[toml]"]
- repo: https://github.com/psf/black
rev: 22.6.0
hooks:
- id: black
name: Black
stages: [commit]
- repo: https://github.com/PyCQA/autoflake
rev: v1.4
hooks:
- id: autoflake
args: ["--in-place", "--remove-unused-variables", "--recursive"]
name: AutoFlake
description: "Format with AutoFlake"
stages: [commit]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.292
hooks:
- id: ruff
name: Ruff
args: ["--fix", "--exit-non-zero-on-fix", "--config", "pyproject.toml"]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
name: ISort
description: "Format with Isort"
stages: [commit]