This repository has been archived by the owner on May 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yaml
35 lines (27 loc) · 1.53 KB
/
Taskfile.yaml
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
version: '3'
tasks:
install:
cmds:
- POETRY_VIRTUALENVS_IN_PROJECT=true poetry install --no-cache --no-interaction --all-extras
- poetry run pre-commit install
run: poetry run python3 {{.CLI_ARGS}}
run:example:all: poetry run jupyter nbconvert --to notebook --inplace --execute examples/*.ipynb
test: poetry run pytest -m "not todo" -n auto --benchmark-disable {{.CLI_ARGS}}
test:ci: poetry run pytest -m "not todo" -n auto --benchmark-disable --cov=fastrepl --cov-report xml:cov.xml --ignore=tests/integration
test:todo: poetry run pytest -m "todo" -n auto -v --benchmark-disable
test:bench: poetry run pytest --benchmark-only tests/benchmark
test:cov: poetry run pytest --benchmark-disable --cov=fastrepl --cov-report=term-missing -n auto {{.CLI_ARGS}}
todo: rg "TODO"
todo:ci: grep -r 'TODO!' ./fastrepl && exit 1 || exit 0
fmt: poetry run black fastrepl tests
fmt:ci: poetry run black fastrepl tests --check
lint: poetry run mypy fastrepl tests
clean: rm -f .local/*.gv .local/*.png
add: poetry add {{.CLI_ARGS}}
add:dev: poetry add {{.CLI_ARGS}} --group dev
add:doc: poetry add {{.CLI_ARGS}} --group doc
sync: poetry lock --no-update && poetry install --sync
convert:nb2py: poetry run jupyter nbconvert --to python {{.CLI_ARGS}}
fix:setuptools: poetry run pip install --force-reinstall -U setuptools && poetry run pip install --force-reinstall -U pip
pre-publish: rm -rf dist && poetry config pypi-token.pypi $PYPI_API_KEY && poetry publish --no-cache --build --dry-run
publish: poetry publish