-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
43 lines (38 loc) · 1.11 KB
/
.pre-commit-config.yaml
File metadata and controls
43 lines (38 loc) · 1.11 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
exclude: ^mkdocs\.yml$ # Exclude mkdocs.yml due to PyYAML tags
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 25.1.0 # Updated to the latest version
hooks:
- id: black
additional_dependencies: ['.[jupyter]']
stages: [pre-commit]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.270'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.4.1
hooks:
- id: mypy
additional_dependencies: [types-requests, types-PyYAML, types-Deprecated] # Added types-Deprecated
- repo: local
hooks:
- id: pytest
name: pytest (quick)
entry: pytest -q
language: system
pass_filenames: false
stages: [pre-push]