-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
46 lines (31 loc) · 797 Bytes
/
justfile
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
38
39
40
41
42
43
44
45
46
install:
poetry install
update:
poetry update
local: install
poetry run pre-commit install
lint: ruff format
lint-fix: ruff-fix format-fix
ruff:
poetry run ruff check
ruff-fix:
poetry run ruff check --fix
format:
poetry run ruff format --diff
format-fix:
poetry run ruff format
bandit:
poetry run bandit -r animal_fact_api -q
safety:
poetry run safety scan
@test-cov:
poetry run coverage run && poetry run coverage report
poetry run coverage html && poetry run coverage xml --fail-under=95
test:
poetry run python manage.py test animal_fact_api.tests.unit_tests
run:
poetry run python manage.py runserver
make-migrations app:
poetry run python manage.py makemigrations {{app}}
migrate:
poetry run python manage.py migrate