-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
43 lines (41 loc) · 1.25 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/python-poetry/poetry
rev: 1.6.1
hooks:
- id: poetry-check
- id: poetry-export
args: ["--output", "requirements.txt"]
- repo: local
hooks:
- id: ruff
name: ruff
description: Run ruff linting
entry: poetry run ruff check --force-exclude
language: system
'types_or': [python, pyi]
require_serial: true
args: [--fix, --exit-non-zero-on-fix]
- id: mypy
name: mypy
description: Run static analysis of the project using mypy.
entry: poetry run mypy --no-error-summary
language: system
# Only run mypy on files in the patsy and migrations directories
files: (patsy|migrations)/.+
types: [python]
- id: black
name: black
description: This hook runs black within our project's environment.
entry: poetry run task black
language: system
types: [python]
require_serial: true