build: add taskfile to organize go-to dev shortcuts
This commit is contained in:
parent
72200752d6
commit
d2a0060f2b
1 changed files with 24 additions and 0 deletions
24
Taskfile.yml
Normal file
24
Taskfile.yml
Normal 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
|
Reference in a new issue