Skip to content

Commit

Permalink
chore: replace Makefile with Poetry tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhantgoel committed Feb 18, 2024
1 parent 52c775f commit b4e9c2c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 23 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
run: poetry install

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

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

- name: Test with pytest
run: make test
run: poetry run task test
20 changes: 0 additions & 20 deletions Makefile

This file was deleted.

10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@ taskipy = "^1.12.2"
line-length = 79
skip-string-normalization = true

[tool.taskipy.tasks]
fmt = "black flask_filealchemy/ tests/ example/"

lint-black = "black --check flask_filealchemy/ tests/ example/"
lint-flake8 = "flake8 flask_filealchemy/ tests/ example/"
lint = "task lint-black && task lint-flake8"

test-pytest = "pytest tests/"
test = "task test-pytest"

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"

0 comments on commit b4e9c2c

Please sign in to comment.