-
Notifications
You must be signed in to change notification settings - Fork 53
/
.pre-commit-config.yaml
38 lines (35 loc) · 980 Bytes
/
.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
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.5
hooks:
- id: bandit
args: ["-c", "pyproject.toml"]
name: Bandit
stages: [commit]
additional_dependencies: ["bandit[toml]"]
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
name: Black
stages: [commit]
- repo: https://github.com/PyCQA/autoflake
rev: v2.1.1
hooks:
- id: autoflake
args: ["--in-place", "--remove-unused-variables", "--remove-all-unused-imports", "--recursive"]
name: AutoFlake
description: "Format with AutoFlake"
stages: [commit]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
name: ISort
description: "Format with Isort"
stages: [commit]