-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
57 lines (47 loc) Β· 3 KB
/
justfile
File metadata and controls
57 lines (47 loc) Β· 3 KB
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
# ======================================================================================
#
# βββββββββββββββββββββββββββββββββββββββ βββββββββββββ βββββββββββββββββββββββββ
# ββββββββββββββββββββ ββββββββββββββ βββββββββββββββββββββββββββ βββββββ
# ββββββββββββββββββββ ββββββββββββββ βββββββββββββββββββββββββββ βββββββ
# βββββββββββββββββββββββββ ββββββββββββββ βββββββββββββββββββββββββββ βββββββ
# ββββββββββββββββββββ ββββββββββββββ βββββββββββββββββββββββββββ βββββββ
# ββββββββββββββββββββ ββββββββββββββ βββββββββββββββββββββββββββ βββββββ
# ββββββββββββββββββββββββββββββββββββββββ βββββββββββββ ββββββββββββ βββββββ
#
# ======================================================================================
# Configuration file for the Just command runner: https://github.com/casey/just
# Using Just is optional; even if you don't have it installed, this file serves
# as a convenient reference for this project's most frequently used commands.
set windows-shell := ['cmd.exe', '/c']
[private]
list:
@{{ just_executable() }} --list --justfile {{ justfile() }}
# Runs pre-commit on all files
[no-exit-message]
pre-commit:
git add .
pre-commit run
alias pc := pre-commit
# Installs all development dependencies
install:
python3 -m pip install -r config/requirements.txt --break-system-packages
python3 -m pip install -r tests/position-solver/requirements.txt --break-system-packages
npm install
pre-commit install --install-hooks
# Updates pre-commit hooks to latest tags
pc-update:
pre-commit autoupdate -j {{ num_cpus() }}
# Runs garbage collection for git & pre-commit
gc:
git gc --aggressive --prune
pre-commit gc
# Bumps version hard-coded in files & creates a new git tag
bump part='major':
bump-my-version bump --verbose {{ part }}
# Reports codebase size & stats
cloc:
cloc --exclude-dir=Builds,.venv,logs,node_modules .
# Runs relint to find all linter suppression tokens
[no-exit-message]
relint:
pre-commit run --hook-stage manual relint --all-files