-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
47 lines (43 loc) · 1.36 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-merge-conflict
- id: destroyed-symlinks
- id: check-toml
# strips outputs from notebook files to reduce churn and minimize repo size
- repo: https://github.com/kynan/nbstripout
rev: "0.8.1"
hooks:
- id: nbstripout
# Prevent old Pythonisms
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.1
hooks:
- id: pyupgrade
# validate Makefile
- repo: https://github.com/mrtazz/checkmake.git
rev: "0.2.2"
hooks:
- id: checkmake
# Ensure version in repo remains 0.0.0 so version can be set through git tags
- repo: local
hooks:
- id: poetry-version-resetter
name: Reset Poetry Project Version to 0.0.0
entry: "make poetry-set-version ARTIFACT_VERSION=0.0.0"
language: system
files: pyproject.toml
pass_filenames: false
verbose: true