-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
36 lines (36 loc) · 1.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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-yaml
- id: end-of-file-fixer
exclude: ^(docs/|report/)
- id: trailing-whitespace
exclude: ^(docs/|report/)
- id: mixed-line-ending
exclude: ^(docs/|report/)
- id: debug-statements
exclude: ^(docs/|report/)
- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black
language_version: python3.11
exclude: ^(docs/|report/)
- id: black-jupyter
language_version: python3.11
files: \.ipynb$
exclude: ^(docs/|report/)
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
exclude: ^(docs/|report/)
- repo: local
hooks:
- id: testing
name: testing
entry: pytest
language: system
files: ^test/ # ^ means "start with test/"
always_run: true # run on all files, not just those staged otherwise it will not run unless you update the test file