forked from maces/fastapi-htmx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
37 lines (36 loc) · 919 Bytes
/
.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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-ast
- id: debug-statements
- id: check-yaml
- id: check-toml
- id: mixed-line-ending
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-case-conflict
- id: check-added-large-files
- id: check-symlinks
- id: name-tests-test
args: [ --pytest-test-first ]
- id: detect-private-key
- id: check-merge-conflict
- repo: local
hooks:
- id: mypy
name: mypy
entry: poetry run mypy
language: system
types: [python]
require_serial: true
- id: black
name: black
entry: poetry run black
language: system
types: [python]
- id: ruff
name: ruff
entry: poetry run ruff check
language: system
types: [python]