Обновить Makefile.python
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
PIP := pip
|
||||
POETRY := poetry
|
||||
PYTHON := python
|
||||
RUFF := ruff
|
||||
MYPY := mypy
|
||||
|
||||
.PHONY: setup-pip setup-poetry setup-full full-lint
|
||||
|
||||
@@ -25,10 +27,8 @@ setup-full:
|
||||
|
||||
# Провести все проверки по коду
|
||||
full-lint:
|
||||
@echo "Running ruff check..."
|
||||
$(RUFF) check .
|
||||
@echo "Running ruff format check..."
|
||||
$(RUFF) format --check .
|
||||
@echo "Running ruff check and fix..."
|
||||
$(RUFF) check . --fix
|
||||
@echo "Running mypy..."
|
||||
$(MYPY) .
|
||||
$(POETRY) run $(MYPY) . --config-file ./pyproject.toml --no-incremental
|
||||
@echo "All checks completed!"
|
||||
Reference in New Issue
Block a user