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