From 5984bdd76fbb6f3bfe2fd279d71e3ef26822efaf Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Sun, 4 May 2025 12:59:25 +0100 Subject: [PATCH] feat(build): Switch to Taskfile --- Makefile | 7 ------- Taskfile.yaml | 12 ++++++++++++ 2 files changed, 12 insertions(+), 7 deletions(-) delete mode 100644 Makefile create mode 100644 Taskfile.yaml diff --git a/Makefile b/Makefile deleted file mode 100644 index 5ddcb65..0000000 --- a/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -.venv: - python3 -m pip install poetry - python3 -m poetry install --with github - -lint: .venv - python3 -m poetry run ruff check --output-format=github --select=E9,F63,F7,F82 --target-version=py37 . - python3 -m poetry run ruff check --output-format=github --target-version=py37 . diff --git a/Taskfile.yaml b/Taskfile.yaml new file mode 100644 index 0000000..2d8b76a --- /dev/null +++ b/Taskfile.yaml @@ -0,0 +1,12 @@ +version: 3 +tasks: + python:lint: + desc: Lint Python files + cmds: + - poetry run ruff check --output-format=github --select=E9,F63,F7,F82 --target-version=py39 . + - poetry run ruff check --output-format=github --target-version=py39 . + + docker:build: + desc: Build the container using Docker + cmds: + - docker build . -t smsbot:latest \ No newline at end of file