Replace make with python alternative (poe) (#1503)

* Get rid of `make` in favor of `poe`

This moves the tasks that were previously in Makefile, into
pyproject.toml (with all the other config)

This is also more inclusive of Windows developers since they only need
Python, and no longer have to install make separately.

* udpate docs

* don't make code blocks also links
This commit is contained in:
Jonathan Wren 2022-06-18 11:36:56 -07:00 committed by GitHub
parent c1c70e643a
commit 51ab747019
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 68 additions and 51 deletions

View file

@ -58,6 +58,7 @@ toml = ">=0.10"
pytest = ">=6.2"
pytest-bdd = ">=4.0.1"
ipdb = "*"
poethepoet = "*"
pytest-clarity = "*"
pyproject-flake8 = "*"
yq = "*"
@ -68,6 +69,26 @@ testing = [ "pytest", "pytest-bdd", "toml" ]
[tool.poetry.scripts]
jrnl = 'jrnl.cli:cli'
[tool.poe.tasks]
bdd = "pytest tests/bdd --gherkin-terminal-reporter --tb=native"
bdd-debug = "poe bdd -x -vv"
format = "black ."
docs = "mkdocs serve"
unit = "pytest tests/unit"
# Groups of tasks
lint = [
{cmd = "poetry check"},
{cmd = "pflake8 jrnl tests"},
{cmd = "black --check --diff ."},
]
test = [
"lint",
"unit",
"bdd",
]
[tool.isort]
multi_line_output = 7
force_single_line = true