-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
49 lines (45 loc) · 1.28 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
49 lines (45 loc) · 1.28 KB
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
# Pre-commit hooks configuration for Ideon
# Install: sudo apt install pre-commit && pre-commit install
# Run manually: pre-commit run --all-files
repos:
# -------------------------
# Hygiene checks
# -------------------------
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
exclude: ^(.*\.(md|rst)|\.gitignore|LICENSE)$
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
args: ["--maxkb=500"]
- id: check-merge-conflict
- id: check-case-conflict
# -------------------------
# Black code formatter for Python
# -------------------------
- repo: https://github.com/psf/black
rev: 23.12.0
hooks:
- id: black
# -------------------------
# Prettier
# -------------------------
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
args: ["--write", "--ignore-unknown"]
# -------------------------
# Run test suite before committing
# -------------------------
- repo: local
hooks:
- id: pytest
name: pytest
entry: pytest -q
language: python
pass_filenames: false
always_run: true
additional_dependencies: [pytest]