-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
65 lines (56 loc) · 1.46 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
ci:
skip: [python-safety-dependencies-check]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: requirements-txt-fixer
- repo: https://github.com/PyCQA/autoflake
rev: v2.3.1
hooks:
- id: autoflake
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8
exclude: ^.*__init__.py$
stages: [commit, push, manual]
args: [--max-line-length=109]
- repo: https://github.com/hhatto/autopep8
rev: v2.1.0
hooks:
- id: autopep8
args: [--in-place, --aggressive, --aggressive, --max-line-length=79]
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.5
hooks:
- id: docformatter
- repo: https://github.com/thibaudcolas/curlylint
rev: v0.13.1
hooks:
- id: curlylint
# - repo: https://github.com/Lucas-C/pre-commit-hooks-safety
# rev: v1.3.1
# hooks:
# - id: python-safety-dependencies-check
# files: requirements
- repo: https://github.com/PyCQA/bandit
rev: '1.7.8'
hooks:
- id: bandit
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.4
hooks:
- id: ruff
args:
- --fix
- --line-length=79
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
language_version: python3
args: [--line-length=79]