forked from scil-vital/tractolearn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
50 lines (46 loc) · 1.38 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
default_language_version:
python: python3.10
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-added-large-files
name: check-added-large-files
description: Prevent giant files from being committed.
- id: check-ast
name: check-ast
description: Simply check whether files parse as valid python.
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-merge-conflict
name: check-merge-conflict
description: Check for files that contain merge conflict strings.
- id: check-toml
- id: check-yaml
exclude: .github/workflows
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/timothycrosley/isort
rev: 5.12.0
hooks:
- id: isort
name: isort
args: [--settings-path, ./pyproject.toml]
types: [python]
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
name: black
args: [--config, ./pyproject.toml]
types: [python]
- repo: https://github.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
name: flake8
additional_dependencies: [flake8-docstrings==1.6.0]
args: [--config, ./setup.cfg]
types: [python]