-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjustfile
64 lines (50 loc) · 1.11 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
53
54
55
56
57
58
59
60
61
62
63
64
set quiet
set dotenv-load
set export
# List commands
_default:
just --list --unsorted --justfile {{justfile()}} --list-heading $'Available commands:\n'
# Install dependencies
bootstrap:
poetry install
# Set up the project
setup:
brew install pipx
pipx ensurepath
pipx install poetry
pipx install ruff
# Update the project
update:
just lock
poetry install -E cli
# Lock the dependencies
lock:
poetry lock
# Lint the project
lint *ARGS='.':
-ruff check {{ ARGS }}
# Check the types in the project
type *ARGS='':
-poetry run mypy {{ ARGS }} # need to run through poetry to see installed dependencies
# Benchmark the project
benchmark:
-poetry run pytest tests/benchmarks/ --benchmark-only --benchmark-compare
# Run the tests
test *ARGS='':
-poetry run pytest {{ ARGS }}
alias t := test
# Run coverage on the code
coverage:
-poetry run pytest --cov=refreshcss
# Run all the dev things
dev:
just lint
just type
just coverage
# Build the package
build:
poetry build
# Build and publish the package to test PyPI and prod PyPI
publish:
poetry publish --build -r test
poetry publish