-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
40 lines (40 loc) · 1.08 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
repos:
# Check YAML; Fix end of files; Fix trailing whitespace
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-yaml
name: Check Yaml
- id: end-of-file-fixer
name: Fix End of Files
- id: trailing-whitespace
name: Fix Trailing Whitespace
# Python - Reorder Imports
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.8.5
hooks:
- id: reorder-python-imports
name: Reorder Python Imports
# Python - Code Formatting
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
name: Code Formatter (black)
exclude: hooks/*
args:
- --line-length
- "79"
- --skip-string-normalization
# Python - Type Checking
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.982
hooks:
- id: mypy
name: Code Linter (Type Checking with mypy)
exclude: |-
(?x)^(
tests/.*|
docs/.*
)$
additional_dependencies: [types-requests]