Open source video conferencing app powered by LiveKit. Built with Django and React.
♻️(devex) optimize Makefile linting workflow
leobe369bc04b20
diff --git a/Makefile b/Makefileindex ac86b94d..fa5c3708 100644--- a/Makefile+++ b/Makefile@@ -44,6 +44,7 @@ COMPOSE_EXEC = $(COMPOSE) execCOMPOSE_EXEC_APP = $(COMPOSE_EXEC) app-devCOMPOSE_RUN = $(COMPOSE) run --rmCOMPOSE_RUN_APP = $(COMPOSE_RUN) app-dev+COMPOSE_RUN_LINT = $(COMPOSE_RUN) --no-deps app-devCOMPOSE_RUN_CROWDIN = $(COMPOSE_RUN) crowdin crowdinWAIT_DB = @$(COMPOSE_RUN) dockerize -wait tcp://$(DB_HOST):$(DB_PORT) -timeout 60s@@ -51,6 +52,14 @@ WAIT_DB = @$(COMPOSE_RUN) dockerize -wait tcp://$(DB_HOST):$(DB_PORTMANAGE = $(COMPOSE_RUN_APP) python manage.pyMAIL_NPM = $(COMPOSE_RUN) -w /app/src/mail node npm+# -- Linters+LINT_RUFF_FORMAT = ruff format .+LINT_RUFF_CHECK = ruff check . --fix+LINT_PYLINT = pylint meet demo core+LINT_BACK = echo 'lint:ruff-format started…' && $(LINT_RUFF_FORMAT) \+ && echo 'lint:ruff-check started…' && $(LINT_RUFF_CHECK) \+ && echo 'lint:pylint started…' && $(LINT_PYLINT)+# -- FrontendPATH_FRONT = ./src/frontend@@ -188,27 +197,23 @@ demo: ## flush db then create a demo for load testing purpose@$(MANAGE) create_demo.PHONY: demo-# Nota bene: Black should come after isort just in case they don't agree...lint: ## lint back-end python sources-lint: \- lint-ruff-format \- lint-ruff-check \- lint-pylint+ @$(COMPOSE_RUN_LINT) sh -c "$(LINT_BACK)".PHONY: lintlint-ruff-format: ## format back-end python sources with ruff@echo 'lint:ruff-format started…'- @$(COMPOSE_RUN_APP) ruff format .+ @$(COMPOSE_RUN_LINT) $(LINT_RUFF_FORMAT).PHONY: lint-ruff-formatlint-ruff-check: ## lint back-end python sources with ruff@echo 'lint:ruff-check started…'- @$(COMPOSE_RUN_APP) ruff check . --fix+ @$(COMPOSE_RUN_LINT) $(LINT_RUFF_CHECK).PHONY: lint-ruff-checklint-pylint: ## lint back-end python sources with pylint only on changed files from main@echo 'lint:pylint started…'- @$(COMPOSE_RUN_APP) pylint meet demo core+ @$(COMPOSE_RUN_LINT) $(LINT_PYLINT).PHONY: lint-pylinttest: ## run project tests; pass extra pytest args via ARGS, e.g. `make test ARGS="-vv"`