-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
37 lines (36 loc) · 1.12 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
# Pre-commit manager: https://pre-commit.com
# Commit hooks
repos:
# Python security linter
- repo: local
hooks:
# Python-code autoformat with minimum configuration. Settings are set in pyproject.toml.
- id: black
name: Local black
entry: black
language: python
types_or: [python, pyi]
# Python-imports sorting. Settings are set in pyproject.toml.
- id: isort
name: Local isort
entry: isort
language: python
types_or: [python, pyi]
# Check typing in Python files. Settings are set in pyproject.toml
- id: mypy
name: Local mypy
entry: mypy
language: python
types: [python]
# Check for files that contain merge conflict strings:
- id: check-merge-conflict
name: Local check-merge-conflict
entry: check-merge-conflict
language: python
types: [text]
# This hook trims trailing whitespace:
- id: trailing-whitespace-fixer
name: Local trailing-whitespace-fixer
entry: trailing-whitespace-fixer
language: python
types: [text]