Skip to content

Commit

Permalink
chore: replace Makefile with taskipy
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhantgoel committed Jul 3, 2024
1 parent 5845dcf commit af7744b
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 24 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: poetry install

- name: Lint
run: make lint
run: poetry run task lint

- name: Test
run: make test
run: poetry run task test
21 changes: 0 additions & 21 deletions Makefile

This file was deleted.

58 changes: 57 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ black = {version = "^23.3", python = "^3.7"}
mypy = "^1.4"
pytest = "^7.4"

[tool.poetry.group.dev.dependencies]
taskipy = "^1.13.0"

[tool.taskipy.tasks]
lint-black = "black --check beancount_n26/ tests/"
lint-flake8 = "flake8 beancount_n26/ tests/"
lint = "task lint-black && task lint-flake8"

test = "pytest tests/"

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
max-line-length = 88
extend-ignore = E203

0 comments on commit af7744b

Please sign in to comment.