Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ regen-fixtures:
@echo "-> Regenerate test fixtures from the running Docker stack"
${COMPOSE} exec -e SCANCODEIO_TEST_FIXTURES_REGEN=1 web ./manage.py test

fix:
@echo "-> Run Ruff format"
uvx ruff format
@echo "-> Run Ruff linter"
uvx ruff check --fix

########################################################################################
# Local venv commands (legacy)
########################################################################################
Expand Down Expand Up @@ -198,4 +204,4 @@ offline-package: docker-images
@mkdir -p dist/
@tar -cf dist/scancodeio-offline-package-`git describe --tags`.tar build/

.PHONY: virtualenv conf dev envfile install doc8 check valid check-deploy clean migrate makemigrations restart-worker postgresdb sqlitedb backupdb run test fasttest regen-fixtures docs build bash shell docker-images offline-package
.PHONY: virtualenv conf dev envfile install doc8 check valid check-deploy clean migrate makemigrations restart-worker postgresdb sqlitedb backupdb run test fasttest regen-fixtures fix docs build bash shell docker-images offline-package
5 changes: 4 additions & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
name: scancodeio

x-dev-env: &dev-env
SCANCODEIO_DEBUG: "True"
DJANGO_RUNSERVER_HIDE_WARNING: "true"

x-dev-build: &dev-build
Expand All @@ -15,6 +14,8 @@ x-dev-build: &dev-build
services:
web:
build: *dev-build
env_file:
- .env
environment:
<<: *dev-env
command: ./manage.py runserver --skip-checks 0.0.0.0:8001
Expand All @@ -26,6 +27,8 @@ services:
# Volume mount keeps code in sync. Restart manually with: make restart-worker
worker:
build: *dev-build
env_file:
- .env
environment:
<<: *dev-env
command: ./manage.py rqworker --worker-class scancodeio.worker.ScanCodeIOWorker
Expand Down
Loading