-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.pre-commit-config.yaml
46 lines (46 loc) · 1.21 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
fail_fast: true
default_language_version:
python: python3.9
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: mixed-line-ending
- id: trailing-whitespace
- id: check-merge-conflict
- id: check-ast
- id: check-yaml
- id: check-json
- id: check-toml
- id: check-added-large-files
- id: check-byte-order-marker
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.2
hooks:
- id: pyupgrade
args: [--py36-plus]
- repo: local
hooks:
- id: mypy
name: mypy
stages: [commit]
language: system
entry: poetry run mypy src tests
types: [python]
pass_filenames: false
- id: skjold
name: "skjold: Auditing dependencies for known vulnerabilities."
entry: skjold audit
language: python
language_version: python3
files: ^(poetry\.lock|Pipfile\.lock|requirements.*\.txt)$
verbose: true