forked from martsec/big-data-infrastructure-exercises
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
45 lines (44 loc) · 1.28 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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.3
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.1
hooks:
- id: mypy
args: [--config-file=pyproject.toml]
exclude: "tests"
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
args: [ --maxkb=500 ]
- id: check-case-conflict
- id: check-illegal-windows-names
- id: check-merge-conflict
- id: trailing-whitespace
exclude_types: ["markdown"]
- id: end-of-file-fixer
exclude_types: ["markdown"]
- id: check-docstring-first
- id: check-yaml
- id: debug-statements
- id: detect-aws-credentials
args: [ --allow-missing-credentials ]
- id: detect-private-key
- id: mixed-line-ending
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.4.0
hooks:
- id: add-trailing-comma
- repo: local
hooks:
- id: pytest-check
name: pytest-check
entry: pytest --cov=bdi_api --cov-report=html --cov-fail-under=75
language: system
pass_filenames: false
always_run: true