Skip to content

Commit 36d59e0

Browse files
committed
Use poethepoet as task runner
1 parent f78f607 commit 36d59e0

3 files changed

Lines changed: 41 additions & 5 deletions

File tree

.github/workflows/test-and-lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ jobs:
2626
if: matrix.python-version >= 3.8
2727
run: |
2828
poetry run flake8 --version
29-
poetry run flake8 --show-source --statistics asserts test_asserts.py
29+
poetry run poe lint --show-source --statistics
3030
- name: Type checking with mypy
3131
run: |
3232
poetry run mypy --version
33-
poetry run mypy asserts test_asserts.py
33+
poetry run poe typecheck
3434
- name: Test with unittest
35-
run: poetry run python -Wall -m unittest test_asserts
35+
run: poetry run poe test
3636
- name: Run doctests
37-
run: poetry run python -m doctest asserts/__init__.py
37+
run: poetry run poe doctest

poetry.lock

Lines changed: 30 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,17 @@ python = ">=3.8"
2828
black = { version = "^23.1.0", python = ">=3.8" }
2929
flake8 = { version = "^6.0.0", python = ">=3.8.1" }
3030
mypy = "~1.5.1"
31+
poethepoet = "^0.25.0"
3132

3233
[tool.black]
3334
line-length = 79
3435

36+
[tool.poe.tasks]
37+
test = "python3 -Wall -m unittest test_asserts"
38+
doctest = "python3 -m doctest asserts/__init__.py"
39+
lint = "flake8 asserts test_asserts.py"
40+
typecheck = "mypy asserts test_asserts.py"
41+
3542
[build-system]
3643
requires = ["poetry-core>=1.0.0"]
3744
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)