This repository has been archived by the owner on Dec 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace tox with taskfile as build tool (#311)
- Loading branch information
Showing
6 changed files
with
96 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,3 +129,4 @@ dmypy.json | |
.pyre/ | ||
node_modules | ||
report.html | ||
.task |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# see https://taskfile.dev/#/ | ||
version: "3" | ||
output: group | ||
vars: | ||
VERSION: | ||
sh: node -p "require('./package.json').version" | ||
tasks: | ||
default: | ||
desc: Run most commands | ||
deps: | ||
- lint | ||
- test | ||
cmds: | ||
- echo Passed all checks! | ||
setup: | ||
desc: Install dependencies | ||
run: once # avoid duplicate runs as all task depend on this | ||
cmds: | ||
- npm ci | ||
- pip3 install --user 'pip-tools>=6.6.2' pre-commit | ||
# check that tools we need are installed | ||
- npm --version | ||
- pip-compile --version | ||
- pre-commit --version | ||
sources: | ||
- Taskfile.yml | ||
- package.json | ||
- package-lock.json | ||
deps: | ||
desc: Update dependencies | ||
deps: | ||
- setup | ||
cmds: | ||
- pip-compile -q --no-header --no-annotate --output-file=requirements.txt | ||
requirements.in | ||
- npm run deps | ||
lint: | ||
desc: Lint the project | ||
deps: | ||
- setup | ||
env: | ||
PRE_COMMIT_COLOR: always | ||
cmds: | ||
- python3 -m pre_commit run -a | ||
silent: true | ||
sources: | ||
- "*" | ||
- "*.*" | ||
- ".config" | ||
- ".github" | ||
- ".vscode" | ||
- data | ||
- f | ||
- negative_test | ||
- src | ||
- test | ||
test: | ||
desc: Run all tests | ||
deps: | ||
- setup | ||
cmds: | ||
- npm run test | ||
sources: | ||
- f/ | ||
- negative_test/ | ||
- test/ | ||
- src/ | ||
- package.json | ||
- package-lock.json | ||
- Taskfile.yml | ||
- tsconfig.json | ||
interactive: true | ||
pr: | ||
desc: Opens a pull request using gh | ||
deps: | ||
- lint | ||
cmds: | ||
- gh pr create | ||
interactive: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters