forked from ColmTalbot/gwpopulation
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
36 lines (35 loc) · 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
repos:
- repo: https://github.com/ambv/black
rev: 22.3.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/ambv/black
rev: 22.3.0
hooks:
- id: black-jupyter
language_version: python3
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: check-merge-conflict # prevent committing files with merge conflicts
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
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