-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
185 changed files
with
95 additions
and
184 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
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
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,45 +1,45 @@ | ||
# -- poetry -- | ||
|
||
poetry-install: | ||
@poetry install --remove-untracked | ||
poetry install --remove-untracked | ||
|
||
# -- code -- | ||
|
||
lint: | ||
black --check . | ||
mypy . | ||
flake8 . | ||
DJANGO_ENV=build python manage.py makemigrations --dry-run --check | ||
DJANGO_ENV=build python src/manage.py makemigrations --dry-run --check | ||
xenon --max-absolute A \ | ||
--max-modules A \ | ||
--max-average A \ | ||
--exclude server/apps/core/graphql/fields/query_connection.py \ | ||
server | ||
--exclude src/apps/core/graphql/fields/query_connection.py \ | ||
src | ||
poetry check | ||
pip check | ||
# safety check --bare --full-report -i 39462 | ||
polint -i location,unsorted locale | ||
dennis-cmd lint --errorsonly locale | ||
polint -i location,unsorted src/locale | ||
dennis-cmd lint --errorsonly src/locale | ||
|
||
test: | ||
@pytest | ||
pytest | ||
|
||
# -- django -- | ||
|
||
make-messages: | ||
@python manage.py makemessages --ignore=.venv/* -l en --no-location | ||
python src/manage.py makemessages -l en --no-location | ||
|
||
compile-messages: | ||
@python manage.py compilemessages | ||
python src/manage.py compilemessages | ||
|
||
# -- pre-commit -- | ||
|
||
pre-commit: | ||
@pre-commit | ||
pre-commit | ||
|
||
pre-commit-install: | ||
@pre-commit install | ||
@pre-commit install --hook-type commit-msg | ||
pre-commit install | ||
pre-commit install --hook-type commit-msg | ||
|
||
pre-commit-update: | ||
@pre-commit autoupdate | ||
pre-commit autoupdate |
File renamed without changes.
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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
CPU_COUNT = $(shell nproc) | ||
|
||
GUNICORN_WORKERS_COUNT ?= ${CPU_COUNT} | ||
CELERY_CONCURRENCY ?= ${CPU_COUNT} | ||
|
||
.PHONY: server | ||
server: | ||
@python src/manage.py migrate | ||
@gunicorn src.asgi:application \ | ||
-k uvicorn.workers.UvicornWorker \ | ||
--bind 0.0.0.0:8000 | ||
|
||
.PHONY: celery-beat | ||
celery-beat: | ||
@rm -f /var/run/app/celerybeat.pid | ||
@celery -A src.celery_app beat \ | ||
-s /var/run/app/celerybeat.schedule \ | ||
--pidfile /var/run/app/celerybeat.pid | ||
|
||
.PHONY: celery-worker | ||
celery-worker: | ||
@celery -A src.celery_app worker --concurrency ${CELERY_CONCURRENCY} | ||
|
||
.PHONY: flower | ||
flower: | ||
@celery -A src.celery_app flower --url_prefix=admin/flower | ||
|
||
.PHONY: static | ||
static: | ||
@nginx -g 'daemon off;' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.