diff --git a/Makefile b/Makefile index a78b5e6d54653..76710966bd689 100644 --- a/Makefile +++ b/Makefile @@ -117,6 +117,7 @@ test-coverage: TEST_EXEC = python -m coverage run $(COVERAGE_ARGS) -m test-coverage: test ## Run automated tests and create coverage report lint: ## Run code linter to check code style, check if formatter would make changes and check if dependency pins need to be updated + @[ -f localstack-core/localstack/__init__.py ] && echo "localstack-core/localstack/__init__.py will break packaging." && exit 1 || : ($(VENV_RUN); python -m ruff check --output-format=full . && python -m ruff format --check .) $(VENV_RUN); pre-commit run check-pinned-deps-for-needed-upgrade --files pyproject.toml # run pre-commit hook manually here to ensure that this check runs in CI as well $(VENV_RUN); openapi-spec-validator localstack-core/localstack/openapi.yaml