From d2a0060f2b1d0bcf7084055e7274e27bc66b8894 Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Sat, 13 Apr 2024 01:47:52 -0400 Subject: [PATCH] build: add taskfile to organize go-to dev shortcuts --- Taskfile.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Taskfile.yml diff --git a/Taskfile.yml b/Taskfile.yml new file mode 100644 index 0000000..118e975 --- /dev/null +++ b/Taskfile.yml @@ -0,0 +1,24 @@ +version: '3' + +tasks: + lock-deps: + desc: 'Generates dependency lockfiles.' + cmd: . script/lock-deps.sh + lint: + desc: 'Checks all Python source files for linting problems.' + cmd: pylint **/*.py + isort: + desc: 'Checks imports for sorting problems.' + cmd: isort . --check + isort-fix: + desc: 'Sorts imports' + cmd: isort . + format: + desc: 'Checks all Python source files for formatting problems.' + cmd: black . --check + format-fix: + desc: 'Resolves formatting problems.' + cmd: black . + test: + desc: 'Runs test suites.' + cmd: pytest . -s -v