-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
39 lines (35 loc) · 1.03 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
exclude: scripts/_templates
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: debug-statements
- id: check-merge-conflict
- id: mixed-line-ending
args: ['--fix=lf']
# Ruff is a replacement for flake8 and many other linters (much faster too)
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.0.280
hooks:
- id: ruff
args: ["--fix"]
# ensures __future__ import annotations at top of files which require it
# for the typing features they are using.
- repo: https://github.com/frostming/fix-future-annotations
rev: 0.5.0
hooks:
- id: fix-future-annotations
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
language_version: python3.10
# strips out all outputs from notebooks.
- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
hooks:
- id: nbstripout