-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
54 lines (51 loc) · 1.37 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
- id: fix-encoding-pragma
args: ["--remove"]
- id: mixed-line-ending
args: ["--fix", "lf"]
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 22.8.0
hooks:
- id: black
language_version: python3 # Should be a command that runs python3.6+
- repo: https://gitlab.com/pycqa/flake8
rev: 5.0.4
hooks:
- id: flake8
additional_dependencies:
- flake8-bandit
- flake8-bugbear
- flake8-implicit-str-concat
- repo: https://github.com/pycqa/isort
rev: 5.10.0
hooks:
- id: isort
name: isort (python)
args: ["--profile", "black"]
#
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v0.910-1
# hooks:
# - id: mypy
# args:
# [
# "--explicit-package-bases",
# "--ignore-missing-imports",
# "--namespace-packages",
# "--scripts-are-modules",
# "--show-error-codes",
# "--warn-unused-configs",
# "--verbose"
# ]