/
.pre-commit-config.yaml
57 lines (51 loc) · 1.27 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
repos:
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.6.4
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: flake8
args: ["--ignore", "E501,W503"]
- id: check-json
- id: check-yaml
- id: name-tests-test
args: ['--django']
- id: debug-statements
- id: end-of-file-fixer
types: [python]
# - id: no-commit-to-branch
# args: ["--branch", "master", "--branch", "main"]
- id: trailing-whitespace
- id: check-docstring-first
- id: requirements-txt-fixer
- id: check-added-large-files
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.790
hooks:
- id: mypy
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.3.1
hooks:
- id: nbqa-isort
- id: nbqa-black
- id: nbqa-flake8
args: ["--ignore=E501,E402"]
- id: nbqa-mypy
args: ["--ignore-missing-imports"]
- id: nbqa-pylint
args: ["--disable=E0401,C0413,C0114,C0301"]
#- repo: local
# hooks:
# - id: unittest
# name: unittest
# entry: python -m unittest discover
# language: python
# always_run: true
# pass_filenames: false