forked from frankhood/esignanywhere-python-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
69 lines (69 loc) · 1.72 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
default_language_version:
python: python3
fail_fast: true
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.1
hooks:
- id: pyupgrade
stages: [commit]
name: "✅ Python Upgrade"
args:
- "--py38-plus"
- "--keep-runtime-typing"
- repo: https://github.com/psf/black
rev: 24.2.0
hooks:
- id: black
stages: [commit]
name: "✅ Black Reformatting"
exclude: ^.*\b(migrations)\b.*$
- repo: https://github.com/PyCQA/autoflake
rev: v2.3.0
hooks:
- id: autoflake
stages: [commit]
name: "✅ Autoflake Reformatting"
language: python
'types': [python]
require_serial: true
exclude: |
(?x)(
.*?/migrations/.*
)
entry: autoflake
args:
- "--ignore-init-module-imports"
- "--remove-all-unused-imports"
- "--in-place"
- "--remove-unused-variables"
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
stages: [commit]
name: "✅ Flake8 Validation"
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
stages: [commit]
args: ["--profile", "black"]
name: "✅ Isort Validation"
- repo: local
hooks:
- id: mypy
stages: [commit]
name: "✅ Mypy Validation"
entry: mypy
language: python
types: [python]
args: ["--install-types", "--non-interactive", "--python-version=3.11"]
additional_dependencies: [
"mypy~=0.931"
]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0 # Use the ref you want to point at
hooks:
- id: check-merge-conflict
name: "✅ Checking Merge Conflict"