-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathJustfile
43 lines (35 loc) · 1.03 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
EXT_NAME := "ulauncher-fzf"
EXT_LOC := "~/.local/share/ulauncher/extensions/" + EXT_NAME
EXT_DIR := justfile_directory()
# List available recipes
default:
@just --list
# Install dependencies
setup:
poetry install
# Run code linters and formatters
lint: setup
#!/usr/bin/env bash
status=0
poetry run black --check --diff main.py || status=$?
poetry run isort --check --diff main.py || status=$?
poetry run pylint main.py || status=$?
poetry run mypy main.py || status=$?
exit $status
# Run code formatters and import organisers
format: setup
poetry run black main.py
poetry run isort main.py
# Create symbolic link to Ulauncher's extension directory
link:
if test -h {{EXT_LOC}}; then just unlink; fi
ln -s {{EXT_DIR}} {{EXT_LOC}}
# Remove symbolic link to Ulauncher's extension directory
unlink:
rm {{EXT_LOC}}
# Start Ulauncher in developer and verbose mode
start: setup
ulauncher --dev -v
# Start Ulauncher in developer and verbose mode with no extensions enabled
dev: setup
ulauncher --no-extensions --dev -v