-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
45 lines (36 loc) · 1.02 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
# List available recipes
default:
@just --list
# Run pre-commit hooks on all files
pre-commit:
uv run pre-commit run --all-files
# Run pyright type checking
pyright:
uv run pyright
# Run pytest unit tests
pytest:
uv run pytest test
# Run Django development server
django-runserver:
uv run python manage.py runserver
# Run Django migrations
django-migrate:
uv run python manage.py migrate
# Make Django migrations
django-makemigrations:
uv run python manage.py makemigrations
# Create a Django superuser
django-createsuperuser:
uv run python manage.py createsuperuser
# Run Django shell
django-shell:
uv run python manage.py shell
# Clean Python cache files
clean:
find . -type d -name "__pycache__" -exec rm -r {} +
find . -type f -name "*.pyc" -delete
find . -type f -name "*.pyo" -delete
find . -type f -name "*.pyd" -delete
find . -type f -name ".coverage" -delete
find . -type d -name "htmlcov" -exec rm -r {} +
find . -type d -name ".pytest_cache" -exec rm -r {} +