-
-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
31 lines (31 loc) · 864 Bytes
/
.pre-commit-config.yaml
File metadata and controls
31 lines (31 loc) · 864 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
30
31
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-ast
- id: check-case-conflict
- id: check-docstring-first
- id: check-merge-conflict
- id: check-vcs-permalinks
- id: debug-statements
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: requirements-txt-fixer
- id: no-commit-to-branch
args: [ --branch, main ]
- id: trailing-whitespace
- repo: local
hooks:
- id: mypy-local
name: Run mypy with all dev dependencies present
language: system
types:
- python
entry: mypy --strict
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.5
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format