Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

Commit f2a80b3

Browse files
committed
justfile: remove redundancy
1 parent d2eab6c commit f2a80b3

1 file changed

Lines changed: 14 additions & 11 deletions

File tree

justfile

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,32 @@
1+
poetry := "python -m poetry"
2+
poetry_run := poetry + " run"
3+
14
default:
25
just --list --unsorted
36

47
setup:
5-
python -m poetry install
8+
{{ poetry }} install
69

710
lint:
8-
python -m poetry run black --check .
9-
python -m poetry run isort --check .
10-
python -m poetry run flake8 .
11-
python -m poetry run mypy
11+
{{ poetry_run }} black --check .
12+
{{ poetry_run }} isort --check .
13+
{{ poetry_run }} flake8 .
14+
{{ poetry_run }} mypy
1215

1316
test:
14-
python -m poetry run pytest
17+
{{ poetry_run }} pytest
1518

1619
format:
17-
python - m poetry run black .
18-
python - m poetry run isort .
20+
{{ poetry_run }} black .
21+
{{ poetry_run }} isort .
1922

2023

2124
build-doc:
22-
cd docs ; python -m poetry run sphinx-build -W . _build/html
25+
cd docs ; {{ poetry_run }} sphinx-build -W . _build/html
2326

2427
dev-doc:
25-
cd docs ; python -m poetry run sphinx-autobuild . _build/html
28+
cd docs ; {{poetry_run }} run sphinx-autobuild . _build/html
2629

2730
deploy-doc: build-doc
28-
ghp-import --push --force --no-jekyll docs/_build/html/
31+
{{ poetry_run }} ghp-import --push --force --no-jekyll docs/_build/html/
2932

0 commit comments

Comments
 (0)