-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/pip/wagtail-4.1.4
- Loading branch information
Showing
12 changed files
with
1,207 additions
and
347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
reset-db: | ||
psql -c 'DROP DATABASE djdb;' | ||
psql -c 'ALTER USER dju CREATEDB;' | ||
psql -c 'CREATE DATABASE djdb OWNER dju;' | ||
python manage.py migrate | ||
ifeq ($(USE_VENV),1) | ||
EXEC_CMD := | ||
else | ||
EXEC_CMD := docker-compose exec -ti web | ||
endif | ||
|
||
.PHONY: web-prompt | ||
web-prompt: | ||
docker-compose run --rm web bash | ||
$(EXEC_CMD) bash | ||
|
||
.PHONY: test-unit | ||
test-unit: | ||
python manage.py test --settings config.settings_test | ||
$(EXEC_CMD) python manage.py test --settings config.settings_test | ||
|
||
.PHONY: test-e2e | ||
test-e2e: | ||
python manage.py behave --settings config.settings_test | ||
$(EXEC_CMD) python manage.py behave --settings config.settings_test | ||
|
||
.PHONY: test | ||
test: test-e2e test-unit | ||
|
||
.PHONY: quality | ||
quality: | ||
black --check --exclude=venv . | ||
isort --check --skip-glob="**/migrations" --extend-skip-glob="venv" . | ||
flake8 --count --show-source --statistics --exclude=venv . | ||
$(EXEC_CMD) black --check --exclude=venv . | ||
$(EXEC_CMD) isort --check --skip-glob="**/migrations" --extend-skip-glob="venv" . | ||
$(EXEC_CMD) flake8 --count --show-source --statistics --exclude=venv . | ||
|
||
.PHONY: fix | ||
fix: | ||
black --exclude=venv . | ||
isort --skip-glob="**/migrations" --extend-skip-glob="venv" . | ||
$(EXEC_CMD) black --exclude=venv . | ||
$(EXEC_CMD) isort --skip-glob="**/migrations" --extend-skip-glob="venv" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.