-
Notifications
You must be signed in to change notification settings - Fork 9
/
.pre-commit-config.yaml
39 lines (36 loc) · 976 Bytes
/
.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
---
default_language_version:
python: python3.11
exclude: (^|/)nbconverted(/|$)|^lectures/9.software_packaging/.*
repos:
# Fix common issues (e.g., whitespace errors)
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
# Fix markdown formatting issues
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.18
hooks:
- id: mdformat
additional_dependencies:
- mdformat-myst
- mdformat-gfm
- repo: https://github.com/asottile/blacken-docs
rev: 1.19.1
hooks:
- id: blacken-docs
# Format python code with black
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
- id: black-jupyter
# Standaridize python imports with isort
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort