-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
35 lines (35 loc) · 1.1 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: check-added-large-files
args: [--maxkb=20000]
- id: forbid-new-submodules
- id: requirements-txt-fixer
- id: check-ast
- id: debug-statements
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: pretty-format-json
args: [--autofix]
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
name: Python code formatting (Black)
args: [--config=config/black.cfg]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.1.1' # Use the sha / tag you want to point at
hooks:
- id: mypy
name: Python type checking (mypy)
args: [--no-strict-optional, --ignore-missing-imports, --config-file=config/mypy.ini]
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: 'v1.5.1'
hooks:
- id: forbid-crlf
- id: forbid-tabs