mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-29 14:06:14 +02:00
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:
parent
c1c70e643a
commit
51ab747019
5 changed files with 68 additions and 51 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue