File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,12 @@ regen-fixtures:
7171 @echo " -> Regenerate test fixtures from the running Docker stack"
7272 ${COMPOSE} exec -e SCANCODEIO_TEST_FIXTURES_REGEN=1 web ./manage.py test
7373
74+ fix :
75+ @echo " -> Run Ruff format"
76+ uvx ruff format
77+ @echo " -> Run Ruff linter"
78+ uvx ruff check --fix
79+
7480# #######################################################################################
7581# Local venv commands (legacy)
7682# #######################################################################################
@@ -198,4 +204,4 @@ offline-package: docker-images
198204 @mkdir -p dist/
199205 @tar -cf dist/scancodeio-offline-package-` git describe --tags` .tar build/
200206
201- .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
207+ .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
Original file line number Diff line number Diff line change 55name : scancodeio
66
77x-dev-env : &dev-env
8- SCANCODEIO_DEBUG : " True"
98 DJANGO_RUNSERVER_HIDE_WARNING : " true"
109
1110x-dev-build : &dev-build
@@ -15,6 +14,8 @@ x-dev-build: &dev-build
1514services :
1615 web :
1716 build : *dev-build
17+ env_file :
18+ - .env
1819 environment :
1920 << : *dev-env
2021 command : ./manage.py runserver --skip-checks 0.0.0.0:8001
@@ -26,6 +27,8 @@ services:
2627 # Volume mount keeps code in sync. Restart manually with: make restart-worker
2728 worker :
2829 build : *dev-build
30+ env_file :
31+ - .env
2932 environment :
3033 << : *dev-env
3134 command : ./manage.py rqworker --worker-class scancodeio.worker.ScanCodeIOWorker
You can’t perform that action at this time.
0 commit comments