-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjustfile
52 lines (42 loc) · 1.35 KB
/
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
47
48
49
50
51
52
# run tests via pytest, creates coverage report, and then opens it up
@test:
coverage run -m pytest --cov-report html
open htmlcov/index.html
# merge current branch with dev
branch_name := `git branch --show-current`
@merge:
echo "{{branch_name}}"
git switch dev
git merge "{{branch_name}}"
# prunes remote branches from github
@prune:
git remote prune github
# removes all but main and dev local branch
@gitclean:
git branch | grep -v "main" | grep -v "dev"| xargs git branch -D
# runs mutation testing
@mutmut:
echo 'This may take a while ... got do something nice for yourself'
mutmut run
# builds the styles.css into the static directory
@style-build:
npx tailwindcss-cli@latest build jstoolchain/css/tailwind.css -c jstoolchain/tailwind.config.js -o staticfiles/css/styles.css
# checks the deployment for prod settings; will return error if the check doesn't pass
@check:
cp core/.env core/.env_staging
cp core/.env_prod core/.env
-python manage.py check --deploy
cp core/.env_staging core/.env
# pulls from branch
@sync branch:
git switch {{branch}}
git pull origin {{branch}}
# applies linting to project (black, djhtml, flake8)
@lint:
pre-commit run --all-files
@run:
python manage.py runserver
@pip:
pip install -U pip
uv pip compile requirements.in
uv pip install -r requirements.txt