generated from xavdid/advent-of-code-python-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
31 lines (26 loc) · 725 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
_default:
just --list
<<<<<<< HEAD
# run linting and typecheking over the solutions
@lint:
ruff solutions
pyright
=======
# error out if this isn't being run in a venv
_require-venv:
#!/usr/bin/env python
import sys
sys.exit(sys.prefix == sys.base_prefix)
# install dev deps
@install: _require-venv
# extra flags make this ~ as fast as I want
pip install -r requirements.txt --quiet --disable-pip-version-check
# run linting and typecheking over the solutions
@lint: _require-venv install
ruff check --quiet
ruff format --check --quiet
pyright
# run every solution for a given year
@validate year:
for i in $(seq 1 25); do ./advent $i --slow --year {{year}}; echo; done;
>>>>>>> template/main