-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
73 lines (64 loc) · 1.73 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
66
67
68
69
70
71
72
73
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
---
default_language_version:
python: python3.10
default_stages: [commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: trailing-whitespace
exclude: .github/CODEOWNERS
stages: ["commit"]
- id: end-of-file-fixer
stages: ["commit"]
- id: check-yaml
args:
- --allow-multiple-documents
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
stages: ["commit"]
- id: check-merge-conflict
# Bandit is a tool designed to find common security issues in Python code
- repo: https://github.com/PyCQA/bandit
rev: 1.7.0
hooks:
- id: bandit
args: [-c=./.bandit]
- repo: meta
hooks:
- id: check-useless-excludes
- repo: https://github.com/pre-commit/mirrors-mypy
rev: d6e31ae # v0.782
hooks:
- id: mypy
args: [--config=./setup.cfg]
types: ["python"]
- repo: local
hooks:
- id: black
name: black
language: system
entry: venv/bin/black --check
types: [ "python" ]
- id: isort
name: isort
language: system
entry: venv/bin/isort --check-only --diff
types: ["python"]
- id: pylint
name: pylint
language: system
entry: venv/bin/pylint
require_serial: true
args:
- "-j 0"
types: ["python"]
- id: allowed_actions_sort
name: Sorting for allowed actions
language: system
entry: env LC_ALL=C sort -c ALLOWED_ACTIONS.yaml
pass_filenames: false
always_run: true