forked from YUKI2eN3e/holodex-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Justfile
52 lines (39 loc) · 811 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
47
48
49
50
51
52
set windows-shell := ["C:\\Program Files\\Git\\bin\\sh.exe", "-c"]
_default: tasks
_setup_poetry:
poetry install
# SetUp project
setup: _setup_poetry
poetry run pre-commit install
# Run ipython
ipython:
poetry run ipython
# Organize imports
sort:
poetry run isort --profile black --line-length 88 .
# Format code
format:
poetry run black .
# Lint and format all files
lint:
poetry check
@just sort
@just format
# List tasks
tasks:
@just --list
# Build project
build: _setup_poetry
poetry build
# Install program using pipx
install: build
py -m pipx install ./dist/`ls -t dist | head -n2 | grep whl`
# Uninstall program using pipx
uninstall:
py -m pipx uninstall holodex-cli
# Reinstall program using pipx
reinstall: uninstall
@just install
# Run cli program
run:
poetry run holodex