From 46867893be0532b04f9389e7af40621a5dc3fea5 Mon Sep 17 00:00:00 2001 From: Collin James Date: Wed, 1 Nov 2023 12:55:17 -0400 Subject: [PATCH 1/3] add a default linux config everyplace there is a windows/darwin config --- misc/manual/task_linux.yaml | 4 ++++ tools/1password/task_linux.yaml | 4 ++++ tools/aws/task_linux.yaml | 4 ++++ tools/github/task_linux.yaml | 4 ++++ tools/k3d/task_linux.yaml | 4 ++++ tools/kubectl/task_linux.yaml | 4 ++++ tools/node/task_linux.yaml | 4 ++++ tools/orbstack/task_linux.yaml | 4 ++++ tools/pulumi/task_linux.yaml | 4 ++++ tools/python/task_linux.yaml | 4 ++++ tools/rancher/task_linux.yaml | 4 ++++ tools/rsync/task_linux.yaml | 4 ++++ tools/sops/task_linux.yaml | 4 ++++ tools/tilt/task_linux.yaml | 4 ++++ tools/yamlfmt/task_linux.yaml | 4 ++++ tools/yq/task_linux.yaml | 4 ++++ 16 files changed, 64 insertions(+) create mode 100644 misc/manual/task_linux.yaml create mode 100644 tools/1password/task_linux.yaml create mode 100644 tools/aws/task_linux.yaml create mode 100644 tools/github/task_linux.yaml create mode 100644 tools/k3d/task_linux.yaml create mode 100644 tools/kubectl/task_linux.yaml create mode 100644 tools/node/task_linux.yaml create mode 100644 tools/orbstack/task_linux.yaml create mode 100644 tools/pulumi/task_linux.yaml create mode 100644 tools/python/task_linux.yaml create mode 100644 tools/rancher/task_linux.yaml create mode 100644 tools/rsync/task_linux.yaml create mode 100644 tools/sops/task_linux.yaml create mode 100644 tools/tilt/task_linux.yaml create mode 100644 tools/yamlfmt/task_linux.yaml create mode 100644 tools/yq/task_linux.yaml diff --git a/misc/manual/task_linux.yaml b/misc/manual/task_linux.yaml new file mode 100644 index 0000000..116deae --- /dev/null +++ b/misc/manual/task_linux.yaml @@ -0,0 +1,4 @@ +--- +version: "3" + +tasks: diff --git a/tools/1password/task_linux.yaml b/tools/1password/task_linux.yaml new file mode 100644 index 0000000..116deae --- /dev/null +++ b/tools/1password/task_linux.yaml @@ -0,0 +1,4 @@ +--- +version: "3" + +tasks: diff --git a/tools/aws/task_linux.yaml b/tools/aws/task_linux.yaml new file mode 100644 index 0000000..116deae --- /dev/null +++ b/tools/aws/task_linux.yaml @@ -0,0 +1,4 @@ +--- +version: "3" + +tasks: diff --git a/tools/github/task_linux.yaml b/tools/github/task_linux.yaml new file mode 100644 index 0000000..116deae --- /dev/null +++ b/tools/github/task_linux.yaml @@ -0,0 +1,4 @@ +--- +version: "3" + +tasks: diff --git a/tools/k3d/task_linux.yaml b/tools/k3d/task_linux.yaml new file mode 100644 index 0000000..116deae --- /dev/null +++ b/tools/k3d/task_linux.yaml @@ -0,0 +1,4 @@ +--- +version: "3" + +tasks: diff --git a/tools/kubectl/task_linux.yaml b/tools/kubectl/task_linux.yaml new file mode 100644 index 0000000..116deae --- /dev/null +++ b/tools/kubectl/task_linux.yaml @@ -0,0 +1,4 @@ +--- +version: "3" + +tasks: diff --git a/tools/node/task_linux.yaml b/tools/node/task_linux.yaml new file mode 100644 index 0000000..116deae --- /dev/null +++ b/tools/node/task_linux.yaml @@ -0,0 +1,4 @@ +--- +version: "3" + +tasks: diff --git a/tools/orbstack/task_linux.yaml b/tools/orbstack/task_linux.yaml new file mode 100644 index 0000000..116deae --- /dev/null +++ b/tools/orbstack/task_linux.yaml @@ -0,0 +1,4 @@ +--- +version: "3" + +tasks: diff --git a/tools/pulumi/task_linux.yaml b/tools/pulumi/task_linux.yaml new file mode 100644 index 0000000..116deae --- /dev/null +++ b/tools/pulumi/task_linux.yaml @@ -0,0 +1,4 @@ +--- +version: "3" + +tasks: diff --git a/tools/python/task_linux.yaml b/tools/python/task_linux.yaml new file mode 100644 index 0000000..116deae --- /dev/null +++ b/tools/python/task_linux.yaml @@ -0,0 +1,4 @@ +--- +version: "3" + +tasks: diff --git a/tools/rancher/task_linux.yaml b/tools/rancher/task_linux.yaml new file mode 100644 index 0000000..116deae --- /dev/null +++ b/tools/rancher/task_linux.yaml @@ -0,0 +1,4 @@ +--- +version: "3" + +tasks: diff --git a/tools/rsync/task_linux.yaml b/tools/rsync/task_linux.yaml new file mode 100644 index 0000000..116deae --- /dev/null +++ b/tools/rsync/task_linux.yaml @@ -0,0 +1,4 @@ +--- +version: "3" + +tasks: diff --git a/tools/sops/task_linux.yaml b/tools/sops/task_linux.yaml new file mode 100644 index 0000000..116deae --- /dev/null +++ b/tools/sops/task_linux.yaml @@ -0,0 +1,4 @@ +--- +version: "3" + +tasks: diff --git a/tools/tilt/task_linux.yaml b/tools/tilt/task_linux.yaml new file mode 100644 index 0000000..116deae --- /dev/null +++ b/tools/tilt/task_linux.yaml @@ -0,0 +1,4 @@ +--- +version: "3" + +tasks: diff --git a/tools/yamlfmt/task_linux.yaml b/tools/yamlfmt/task_linux.yaml new file mode 100644 index 0000000..116deae --- /dev/null +++ b/tools/yamlfmt/task_linux.yaml @@ -0,0 +1,4 @@ +--- +version: "3" + +tasks: diff --git a/tools/yq/task_linux.yaml b/tools/yq/task_linux.yaml new file mode 100644 index 0000000..116deae --- /dev/null +++ b/tools/yq/task_linux.yaml @@ -0,0 +1,4 @@ +--- +version: "3" + +tasks: From acaf2eae15306e8982857c7c0906a0cd221e53c8 Mon Sep 17 00:00:00 2001 From: Collin James Date: Wed, 1 Nov 2023 13:25:26 -0400 Subject: [PATCH 2/3] add yaml install for linux --- tools/yamlfmt/task_linux.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tools/yamlfmt/task_linux.yaml b/tools/yamlfmt/task_linux.yaml index 116deae..01246c0 100644 --- a/tools/yamlfmt/task_linux.yaml +++ b/tools/yamlfmt/task_linux.yaml @@ -2,3 +2,16 @@ version: "3" tasks: + install: + status: + - command -v yamlfmt &>/dev/null + vars: + TEMP_DIR: + sh: mktemp -d + # YAMLfmt uses x86_64 instead of amd64 + FIXED_ARCH: '{{if eq ARCH "amd64"}}x86_64{{else}}{{ARCH}}{{end}}' + cmds: + - defer: rm -rf {{.TEMP_DIR}} + - curl -Lo {{.TEMP_DIR}}/yamlfmt.tar.gz https://github.com/google/yamlfmt/releases/download/v0.9.0/yamlfmt_0.9.0_Linux_{{.FIXED_ARCH}}.tar.gz + - tar -xvf {{.TEMP_DIR}}/yamlfmt.tar.gz -C {{.TEMP_DIR}} + - sudo mv {{.TEMP_DIR}}/yamlfmt /usr/local/bin/yamlfmt From d1d2372e5a85e872bb7b3e3c22559116649b467d Mon Sep 17 00:00:00 2001 From: Collin James Date: Fri, 3 Nov 2023 10:42:14 -0400 Subject: [PATCH 3/3] make isort compatible with black --- tools/python/task.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/python/task.yaml b/tools/python/task.yaml index 4c8c319..b0e2f74 100644 --- a/tools/python/task.yaml +++ b/tools/python/task.yaml @@ -44,10 +44,10 @@ tasks: format: - poetry run -- black . - - poetry run -- isort . + - poetry run -- isort --profile black . lint: - poetry run -- flake8 . --count --statistics - poetry run -- black . --check - - poetry run -- isort . --check-only + - poetry run -- isort . --profile black --check-only