build: add taskfile to organize go-to dev shortcuts

This commit is contained in:
Marc 2024-04-13 01:47:52 -04:00
parent 72200752d6
commit d2a0060f2b
Signed by: marc
GPG key ID: 048E042F22B5DC79

24
Taskfile.yml Normal file
View file

@ -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