forked from nautechsystems/nautilus_trader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
78 lines (73 loc) · 2.04 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
repos:
- repo: https://github.com/PyCQA/isort
rev: 5.8.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: forbid-new-submodules
- id: fix-encoding-pragma
args: [--remove]
- id: end-of-file-fixer
types_or: [python, cython]
- id: trailing-whitespace
types_or: [python, cython]
- id: debug-statements
- id: detect-private-key
- id: check-builtin-literals
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-xml
- id: check-yaml
- repo: https://github.com/codespell-project/codespell
rev: v2.0.0
hooks:
- id: codespell
description: Checks for common misspellings.
types_or: [python, rst, markdown] # TODO: Add Cython
- repo: https://gitlab.com/PyCQA/flake8
rev: 3.9.0
hooks:
- id: flake8
name: flake8 (python)
additional_dependencies:
- flake8-bandit
- flake8-black
- flake8-bugbear
- flake8-coding
# - flake8-comprehensions
- flake8-debugger
- flake8-deprecated
# - flake8-docstrings
- flake8-pep3101
- flake8-string-format
# - flake8-rst-docstrings
- flake8-typing-imports
# - pep8-naming
types: [python]
- id: flake8
name: flake8 (cython)
additional_dependencies:
- flake8-bandit
- flake8-black
- flake8-bugbear
- flake8-coding
- flake8-comprehensions
- flake8-debugger
- flake8-deprecated
- flake8-docstrings
- flake8-pep3101
- flake8-string-format
- flake8-rst-docstrings
- flake8-typing-imports
- pep8-naming
types: [cython]