-
Notifications
You must be signed in to change notification settings - Fork 2
/
justfile
49 lines (40 loc) · 857 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
42
43
44
45
46
47
48
49
# activate venv
venv:
. .venv/bin/activate
# install euchre-cli from local
install:
pip install -q ."[test]"
# install euchre-cli via flit
flit-install:
pip install flit
flit install
# install editable
dev-install:
pip install -q -e .
# lint and format
lint:
pre-commit run --show-diff-on-failure --all-files
# run all tests
test: install
pytest
# run all tests with coverage
test-cov: install
pytest -v --cov-report xml --cov euchre
# build dist
build:
flit build
# generate homebrew formula
brew:
pip install -q ."[dev]"
poet -f euchre-cli >> formula.rb
# remove artifacts
# TODO: remove __pycache__ dirs from src/ and tests/
cleanup:
rm -f .coverage
rm -f coverage.xml
rm -f formula.rb
rm -rf .pytest_cache
rm -rf build
rm -rf dist
rm -rf *.egg-info
rm -rf .ruff_cache