chore: don't use venv activation in makefile
This commit is contained in:
parent
beff69ca5b
commit
2ccd93299a
2 changed files with 15 additions and 27 deletions
10
api/Makefile
10
api/Makefile
|
@ -9,14 +9,14 @@ PYLINT_ARG := libretime_api
|
|||
MYPY_ARG := libretime_api
|
||||
BANDIT_ARG := --exclude '*/tests/*' libretime_api || true
|
||||
|
||||
export DJANGO_SETTINGS_MODULE=libretime_api.settings.testing
|
||||
|
||||
format: .format
|
||||
lint: .format-check .pylint .mypy .bandit
|
||||
clean: .clean
|
||||
|
||||
test: $(VENV)
|
||||
source $(VENV)/bin/activate
|
||||
export DJANGO_SETTINGS_MODULE=libretime_api.settings.testing
|
||||
pytest -v \
|
||||
$(VENV)/bin/pytest -v \
|
||||
--numprocesses=$(CPU_CORES) \
|
||||
--color=yes \
|
||||
--cov-config=pyproject.toml \
|
||||
|
@ -27,9 +27,7 @@ test: $(VENV)
|
|||
|
||||
SCHEMA_FILE ?= schema.yml
|
||||
schema: $(VENV)
|
||||
source $(VENV)/bin/activate
|
||||
export DJANGO_SETTINGS_MODULE=libretime_api.settings.testing
|
||||
libretime-api spectacular --file $(SCHEMA_FILE)
|
||||
$(VENV)/bin/libretime-api spectacular --file $(SCHEMA_FILE)
|
||||
if command -v npx > /dev/null; then npx prettier --write $(SCHEMA_FILE); fi
|
||||
|
||||
schema-foreach-commit:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue