Dev dependencies

[+] install dev deps in --dev group
[+] add pre-commit config
This commit is contained in:
2026-04-19 15:59:16 +03:00
parent 7cd0d8c229
commit 048071263a
2 changed files with 45 additions and 1 deletions

34
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,34 @@
repos:
- repo: local
hooks:
# Run the linter.
- id: ruff
name: ruff
language: system
exclude: __init__.py
types_or: [ python, pyi ]
entry: uv run ruff check .
args: [ --fix ]
# Run the formatter.
- id: ruff-format
name: ruff-format
language: system
entry: uv run ruff format
types_or: [ python, pyi ]
# Отсортировывает импорты в проекте
- id: isort
name: isort
language: system
exclude: __init__.py
entry: uv run isort
args: [ --profile, black, --filter-files ]
- id: mypy
name: mypy
entry: uv run mypy
require_serial: true
language: system
types: [ python ]