-
Notifications
You must be signed in to change notification settings - Fork 7
/
.pre-commit-config.yaml
40 lines (40 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
38
39
40
repos:
- repo: https://github.com/ambv/black
rev: 22.10.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/ambv/black
rev: 22.10.0
hooks:
- id: black-jupyter
language_version: python3
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-merge-conflict # prevent committing files with merge conflicts
- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
hooks:
- id: codespell # Spellchecker
args: [-L, "nd,hist", "--skip", "*.ipynb"]
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort # sort imports alphabetically and separates import into sections
args: [-w=88, -m=3, --tc, -sp=setup.cfg ]
- repo: local
hooks:
- id: flynt
name: flynt
entry: flynt
args: [--fail-on-change]
types: [python]
language: python
additional_dependencies:
- flynt
- repo: https://github.com/ColmTalbot/nbstrip
rev: v0.1.1
hooks:
- id: nbstrip
args: [-i, -v]