-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
47 lines (45 loc) · 1.11 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
fail_fast: true
minimum_pre_commit_version: 3.7.1
default_language_version:
python: python3.10
repos:
- repo: local
hooks:
- id: update-coverage-badge
name: update-coverage-badge
entry: bash
args:
- ./pre-commit.sh
language: system
pass_filenames: false
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
name: Lint
language_version: python3.10
language: python
entry: black src/
args:
- --safe
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
- id: check-byte-order-marker
- id: check-merge-conflict
- id: check-symlinks
- id: check-vcs-permalinks
- id: debug-statements
- id: check-yaml
files: .*\.(yaml|yml)$
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
name: Code style
language_version: python3.10
language: python
entry: flake8 src/