-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
59 lines (51 loc) · 1.49 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
48
49
50
51
52
53
54
55
56
57
58
59
default_stages:
- commit
repos:
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
args: ["--config=pyproject.toml"]
additional_dependencies: ["click==8.0.4"]
# - repo: https://github.com/PyCQA/isort
# rev: 5.12.0
# hooks:
# - id: isort
# args: ["--settings-path pyproject.toml"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: debug-statements
- id: check-yaml
- repo: https://github.com/PyCQA/flake8
rev: 3.8.4
hooks:
- id: flake8
additional_dependencies: [flake8-docstrings]
- repo: https://github.com/myint/rstcheck
rev: 3f92957478422df87bd730abde66f089cc1ee19b
hooks:
- id: rstcheck
- repo: local
hooks:
- id: set-py-versions
name: set python versions
description: set python versions := [3.8, 3.13) to `pyproject.toml`
language: python
entry: python scripts/poetry_fix.py -f
pass_filenames: false
# - repo: https://github.com/python-jsonschema/check-jsonschema
# rev: 0.18.2
# hooks:
# - id: check-github-workflows
- repo: local
hooks:
- id: exp-branch-push
name: experiment branch push
description: prevent pushing 'experiment/*' branches to LAMA github
stages: [push]
language: python
entry: python ./scripts/exp_branch_push.py
pass_filenames: false