-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
46 lines (46 loc) · 1.5 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
44
45
46
default_install_hook_types: [pre-commit, commit-msg, post-merge, post-checkout]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-case-conflict
- id: check-json
- id: check-shebang-scripts-are-executable
- id: check-toml
- id: check-xml
- id: check-yaml
- id: end-of-file-fixer
- id: mixed-line-ending
args: ["--fix=lf"]
- id: no-commit-to-branch
args: ["--branch", "main", "--branch", "develop"]
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
hooks:
- id: ruff
args: ["--fix", "--exit-non-zero-on-fix"]
- id: ruff-format
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.28.0
hooks:
- id: commitizen
stages:
- commit-msg
- repo: https://github.com/python-poetry/poetry
rev: 1.8.0
hooks:
- id: poetry-check
- id: poetry-lock
- id: poetry-export
args: ["--format", "requirements.txt", "--output", "numpy_pydantic_types/requirements.txt", "--without-hashes", "--without-urls"]
- id: poetry-export
args: ["--with", "dev", "--with", "typecheck", "--with", "format", "--format", "requirements.txt", "--output", "numpy_pydantic_types/requirements-dev.txt", "--without-hashes", "--without-urls"]
- id: poetry-install
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.1
hooks:
- id: mypy
args: ["--strict", "--ignore-missing-imports"]
additional_dependencies: ["pydantic", "pydantic-settings", "pytest", "numpy"]
pass_filenames: false