-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Use go-task for taskdef in project
- Loading branch information
Showing
4 changed files
with
80 additions
and
6 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
version: '3' | ||
|
||
vars: | ||
# If you run bare environment or activated venv, set '' (blank string) | ||
RUN_PYTHON: 'uv run' | ||
|
||
tasks: | ||
setup: | ||
desc: 'Setup workspace' | ||
cmds: | ||
- 'uv sync --frozen' | ||
test: | ||
desc: 'Test environment' | ||
cmds: | ||
- '{{.RUN_PYTHON}} pre-commit run --all-files' | ||
- '{{.RUN_PYTHON}} pytest' | ||
- task: 'docs:intl' | ||
- task: 'docs:build-linkcheck' | ||
- task: 'docs:build-mini18n-dirhtml' | ||
- 'uv build' | ||
release-*: | ||
desc: 'Run elease process' | ||
vars: | ||
LEVEL: '{{index .MATCH 0}}' | ||
cmds: | ||
- 'age {{.LEVEL}}' | ||
- 'uv sync' # To write out as lock-file | ||
|
||
includes: | ||
docs: './docs' |
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,44 @@ | ||
version: '3' | ||
|
||
vars: | ||
# If you run bare environment or activated venv, set '' (blank string) | ||
# RUN_PYTHON: '' | ||
SPHINX_DEFAULT_BUILD: 'mini18n-dirhtml' | ||
SPHINX_OPTIONS: '' | ||
SPHINX_LANGUAGES: | ||
- 'ja' | ||
|
||
env: | ||
SPHINXINTL_TRANSLATOR: "Kazuya Takei <[email protected]>" | ||
|
||
tasks: | ||
intl: | ||
desc: 'Sync i18n environment' | ||
dir: '{{.TASKFILE_DIR}}' | ||
cmds: | ||
- '{{.RUN_PYTHON}} sphinx-build -M gettext . _build {{.SPHINX_OPTIONS}}' | ||
- '{{.RUN_PYTHON}} sphinx-intl update --language={{.SPHINX_LANGUAGES | join ","}}' | ||
dev: | ||
desc: 'Run docs server' | ||
dir: '{{.TASKFILE_DIR}}' | ||
cmds: | ||
- '{{.RUN_PYTHON}} sphinx-autobuild -b dirhtml . _build/dirhtml' | ||
build-*: | ||
desc: 'Make docs' | ||
dir: '{{.TASKFILE_DIR}}' | ||
vars: | ||
TARGET: '{{index .MATCH 0}}' | ||
cmds: | ||
- '{{.RUN_PYTHON}} sphinx-build -M {{.TARGET}} . _build' | ||
build: | ||
desc: 'Make docs (default target)' | ||
deps: | ||
- 'build-{{.SPHINX_DEFAULT_BUILD}}' | ||
help: | ||
desc: 'Display help of docs' | ||
deps: | ||
- 'build-help' | ||
clean: | ||
desc: 'Clean build files of docs' | ||
deps: | ||
- 'build-clean' |