Created
September 6, 2023 11:04
-
-
Save evilkost/43c9202504c9a938d8b9314caf1c2d65 to your computer and use it in GitHub Desktop.
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
isort_run: | |
deps: [ ensure_venv ] | |
dotenv: | |
- .env | |
shell: bash | |
vars: | |
CHECK_FLAG: | |
sh: check_flag="--check"; if [ '{{.APPLY_FIX}}' == 'true' ]; then check_flag=""; fi; echo $check_flag | |
cmds: | |
- for: { var: TARGET, as: FILE } | |
cmd: | | |
. $VENV_PATH/bin/activate | |
cd {{.ROOT_DIR}} | |
isort "{{.FILE}}" "{{.CHECK_FLAG}}" | |
silent: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment