forked from FAU-CS6/KDD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
39 lines (34 loc) · 1.18 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
# This is the pre-commit (https://pre-commit.com/) config for our KDD lecture
# Follow the instructions in the README file to get it running
repos:
# General pre-commit hooks concerning all file types
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: '\.tex$' # trailing-whitespace and latexindent would otherwise conflict
# Hooks concerning Latex files
- repo: https://github.com/cmhughes/latexindent.pl.git
rev: V3.24.2
hooks:
- id: latexindent
# Hooks concerning Bibtex files
- repo: https://github.com/FlamingTempura/bibtex-tidy
rev: v1.8.5
hooks:
- id: bibtex-tidy
# Hooks concerning Python files (and Jupyter Notebooks)
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black-jupyter
- repo: local
hooks:
- id: jupyter-nb-clear-output
name: jupyter-nb-clear-output
files: \.ipynb$
stages: [commit]
language: system
entry: jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace