-
Notifications
You must be signed in to change notification settings - Fork 1
/
.justfile
68 lines (48 loc) · 1.34 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
65
66
67
68
# vim: set ft=just sts=2 ts=2 sw=2:
set shell := ["bash", "-cu"]
# -----------------------------------------------------------------------------
alias e := edit
# -----------------------------------------------------------------------------
@default:
just --list
@edit:
$EDITOR {{justfile()}}
[confirm]
@clean:
git clean -fd
@plug what:
./dots plug {{what}}
# -----------------------------------------------------------------------------
[group("lua")]
[group("format")]
@stylua +filename:
stylua {{filename}}
[group("lua")]
[group("lint")]
@selene +filename:
selene {{filename}}
@_lua +filename: (stylua filename) (selene filename)
[group("lua")]
@lua:
fd -H -e lua -t f -X just _lua
# -----------------------------------------------------------------------------
[group("python")]
[group("format")]
@isort +filename:
isort --atomic --jobs {{num_cpus()}} {{filename}}
[group("python")]
[group("lint")]
@mypy +filename:
mypy --no-incremental {{filename}}
[group("python")]
[group("lint")]
@ruff-c +filename:
ruff check --no-cache {{filename}}
[group("python")]
[group("format")]
@ruff-f +filename:
ruff format --no-cache {{filename}}
@_python +filename: (isort filename) (mypy filename) (ruff-c filename) (ruff-f filename)
[group("python")]
@python: (_python "dots") (_python "bin/.bin/git-br")
fd -H -e py -t f -X just _python