-
Notifications
You must be signed in to change notification settings - Fork 160
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
29 lines (29 loc) · 921 Bytes
/
.pre-commit-config.yaml
File metadata and controls
29 lines (29 loc) · 921 Bytes
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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format
types_or: [ python, jupyter ]
# # Mypy: Optional static type checking
# # https://github.com/pre-commit/mirrors-mypy
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v1.11.1
# hooks:
# - id: mypy
# exclude: ^(docs|tests)\/
# language_version: python3.9
# args: [--namespace-packages, --explicit-package-bases, --ignore-missing-imports, --non-interactive, --install-types]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: debug-statements
- id: end-of-file-fixer
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "v2.5.0"
hooks:
- id: pyproject-fmt