-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathJustfile
More file actions
37 lines (28 loc) · 801 Bytes
/
Justfile
File metadata and controls
37 lines (28 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
set dotenv-load := true
# List available commands
list:
@just --list
# Set up - install development dependencies
setup:
poetry install --all-extras
# Publish to PyPI (with the right credentials)
publish repo="pypi":
poetry build
poetry publish -r {{repo}}
publish-test: (publish 'test-pypi')
# Run all automated tests
test *args:
poetry run pytest {{args}}
# Run tests with coverage
coverage *args:
just test -vv --cov --cov-report term --cov-report html:_reports/coverage-html {{args}}
# Serve the coverage HTML reports
coverage-serve:
python -m http.server 7777 -d _reports/coverage-html
# Run Django management commands for the sample project
manage *args:
poetry run django-admin {{args}}
# Run the sample project
sample-app:
just manage migrate
just manage runserver