forked from skodaconnect/myskoda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Justfile
41 lines (34 loc) · 797 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
set positional-arguments
venv:
#!/bin/sh
[ -d venv ] || python3 -m venv venv
source venv/bin/activate
[ -f venv/bin/poetry ] || pip install poetry
install: venv
#!/bin/sh
source venv/bin/activate
poetry install --quiet --all-extras
lint: install
#!/bin/sh
source venv/bin/activate
poetry run ruff check .
poetry run ruff format . --diff
poetry run pyright
format: install
#!/bin/sh
source venv/bin/activate
poetry run ruff format .
test *args: install
#!/bin/sh
source venv/bin/activate
poetry run pytest \
--cov-report term \
--cov-report xml:coverage.xml \
--cov=myskoda \
{{args}}
run *args: install
#!/bin/sh
source venv/bin/activate
myskoda "$@"
clean:
rm -rf venv