-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
48 lines (47 loc) · 1.52 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
# to install - https://pre-commit.com/#install
# run once: `pre-commit install`
# to run all: `pre-commit run --all-files`
# to update repo: `pre-commit autoupdate`
# it will run on each commit message
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-yaml
- id: check-xml
- id: check-toml
- id: check-case-conflict
# - id: check-shebang-scripts-are-executable
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-added-large-files
- id: check-symlinks
- id: detect-aws-credentials
- id: detect-private-key
- id: check-merge-conflict
- id: check-ast
- id: requirements-txt-fixer
- id: debug-statements
- repo: local
hooks:
- id: unittest
name: unittest
entry: python -m unittest discover .
language: system # changing this to python breaks things as per: https://stackoverflow.com/questions/59714740/pre-commit-run-unittest-git-hooks-modulenotfounderror-for-installed-python-modu
'types': [ python ]
args: [ "-p '*test.py'" ] # Probably this option is absolutely not needed.
pass_filenames: false
stages: [ commit ]
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/regebro/pyroma
rev: "3.2"
hooks:
- id: pyroma
#- repo: https://github.com/pre-commit/mirrors-yapf
# rev: v0.31.0
# hooks:
# - id: yapf
# additional_dependencies: [toml]