chore(api): add schema target to makefile
This commit is contained in:
parent
8f65318d32
commit
8b1cffe0f3
|
@ -6,9 +6,16 @@ CPU_CORES := $(shell N=$$(nproc); echo $$(( $$N > 4 ? 4 : $$N )))
|
||||||
install:
|
install:
|
||||||
poetry install --all-extras
|
poetry install --all-extras
|
||||||
|
|
||||||
|
export DJANGO_SETTINGS_MODULE=config.settings.local
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
poetry run pylint \
|
poetry run pylint \
|
||||||
--jobs=$(CPU_CORES) \
|
--jobs=$(CPU_CORES) \
|
||||||
--output-format=colorized \
|
--output-format=colorized \
|
||||||
--recursive=true \
|
--recursive=true \
|
||||||
config funkwhale_api tests
|
config funkwhale_api tests
|
||||||
|
|
||||||
|
SCHEMA_FILE ?= schema.yml
|
||||||
|
schema:
|
||||||
|
poetry run funkwhale-manage spectacular --file $(SCHEMA_FILE)
|
||||||
|
if command -v npx > /dev/null; then npx prettier --write $(SCHEMA_FILE); fi
|
||||||
|
|
Loading…
Reference in New Issue