From 2d48d28f9c27d002c185a33270703cf70128a16e Mon Sep 17 00:00:00 2001 From: David Jensenius Date: Sat, 5 Jul 2025 08:58:40 -0400 Subject: [PATCH] feat: Lint yml files and add lint workflow --- .github/workflows/convco.yml | 3 ++- .github/workflows/nomerge.yml | 3 ++- .github/workflows/yamllint.yml | 16 ++++++++++++++++ .yamllint | 11 +++++++++++ themes/black.yml | 9 +++++---- themes/catppuccin.yml | 1 + themes/default.yml | 9 +++++---- themes/dracula.yml | 1 + themes/frosty.yml | 9 +++++---- themes/gruvbox-dark.yml | 1 + themes/gruvbox-light.yml | 1 + themes/one_dark.yml | 2 +- themes/rose-pine-dawn.yml | 1 + themes/rose-pine-moon.yml | 1 + themes/rose-pine.yml | 1 + themes/tokyonight.yml | 1 + themes/white.yml | 9 +++++---- 17 files changed, 60 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/yamllint.yml create mode 100644 .yamllint diff --git a/.github/workflows/convco.yml b/.github/workflows/convco.yml index 9fce77c..23325ca 100644 --- a/.github/workflows/convco.yml +++ b/.github/workflows/convco.yml @@ -1,6 +1,7 @@ +--- name: commit -on: +on: # yamllint disable-line rule:truthy push: branches: [ main ] pull_request: diff --git a/.github/workflows/nomerge.yml b/.github/workflows/nomerge.yml index f96d6ef..e946a68 100644 --- a/.github/workflows/nomerge.yml +++ b/.github/workflows/nomerge.yml @@ -1,6 +1,7 @@ +--- name: commit -on: +on: # yamllint disable-line rule:truthy pull_request: branches: [main] diff --git a/.github/workflows/yamllint.yml b/.github/workflows/yamllint.yml new file mode 100644 index 0000000..71594b1 --- /dev/null +++ b/.github/workflows/yamllint.yml @@ -0,0 +1,16 @@ +--- +name: 'Lint YAML' +on: # yamllint disable-line rule:truthy + - pull_request +jobs: + yamllint: + name: 'Lint YAML' + runs-on: ubuntu-latest + steps: + - name: 'Checkout' + uses: actions/checkout@v4 + - name: 'Yamllint' + uses: karancode/yamllint-github-action@master + with: + yamllint_strict: true + yamllint_comment: false diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..80cb458 --- /dev/null +++ b/.yamllint @@ -0,0 +1,11 @@ +--- + +extends: default + +rules: + braces: + level: warning + max-spaces-inside: 1 + brackets: + level: warning + max-spaces-inside: 1 diff --git a/themes/black.yml b/themes/black.yml index a483741..f3a9bcf 100644 --- a/themes/black.yml +++ b/themes/black.yml @@ -1,3 +1,4 @@ +--- colourful: false filekinds: @@ -102,9 +103,9 @@ broken_symlink: {foreground: "#000"} broken_path_overlay: {foreground: "#000"} filenames: - # Custom filename-based overrides - # Cargo.toml: {icon: {glyph: 🦀}} +# Custom filename-based overrides +# Cargo.toml: {icon: {glyph: 🦀}} extensions: - # Custom extension-based overrides - # rs: {filename: {foreground: Red}, icon: {glyph: 🦀}} +# Custom extension-based overrides +# rs: {filename: {foreground: Red}, icon: {glyph: 🦀}} diff --git a/themes/catppuccin.yml b/themes/catppuccin.yml index 1936dbb..107847d 100644 --- a/themes/catppuccin.yml +++ b/themes/catppuccin.yml @@ -1,3 +1,4 @@ +--- colourful: true filekinds: diff --git a/themes/default.yml b/themes/default.yml index eacbea9..66659e2 100644 --- a/themes/default.yml +++ b/themes/default.yml @@ -1,3 +1,4 @@ +--- colourful: true filekinds: @@ -102,9 +103,9 @@ broken_symlink: {foreground: Red} broken_path_overlay: {foreground: Default, is_underline: true} filenames: - # Custom filename-based overrides - # Cargo.toml: {icon: {glyph: 🦀}} +# Custom filename-based overrides +# Cargo.toml: {icon: {glyph: 🦀}} extensions: - # Custom extension-based overrides - # rs: {filename: {foreground: Red}, icon: {glyph: 🦀}} +# Custom extension-based overrides +# rs: {filename: {foreground: Red}, icon: {glyph: 🦀}} diff --git a/themes/dracula.yml b/themes/dracula.yml index 4c89d79..dc6e635 100644 --- a/themes/dracula.yml +++ b/themes/dracula.yml @@ -1,3 +1,4 @@ +--- colourful: true # yellow #F1FA8C # red #FF5555 diff --git a/themes/frosty.yml b/themes/frosty.yml index 2392377..ee7cb02 100644 --- a/themes/frosty.yml +++ b/themes/frosty.yml @@ -1,3 +1,4 @@ +--- # colors: # - light icy blue: #E0F7FA # - snow white: #FFFFFF @@ -111,9 +112,9 @@ broken_symlink: {foreground: "#FF8A80"} broken_path_overlay: {foreground: "#607D8B"} filenames: - # Custom filename-based overrides - # Cargo.toml: {icon: {glyph: 🦀}} +# Custom filename-based overrides +# Cargo.toml: {icon: {glyph: 🦀}} extensions: - # Custom extension-based overrides - # rs: {filename: {foreground: Red}, icon: {glyph: 🦀}} +# Custom extension-based overrides +# rs: {filename: {foreground: Red}, icon: {glyph: 🦀}} diff --git a/themes/gruvbox-dark.yml b/themes/gruvbox-dark.yml index 70972dc..42522ed 100644 --- a/themes/gruvbox-dark.yml +++ b/themes/gruvbox-dark.yml @@ -1,3 +1,4 @@ +--- colourful: true filekinds: diff --git a/themes/gruvbox-light.yml b/themes/gruvbox-light.yml index 99fd9bf..fd24594 100644 --- a/themes/gruvbox-light.yml +++ b/themes/gruvbox-light.yml @@ -1,3 +1,4 @@ +--- colourful: true filekinds: diff --git a/themes/one_dark.yml b/themes/one_dark.yml index b34d850..bed013c 100644 --- a/themes/one_dark.yml +++ b/themes/one_dark.yml @@ -1,3 +1,4 @@ +--- colourful: true filekinds: @@ -100,4 +101,3 @@ symlink_path: {foreground: "#56B6C2"} control_char: {foreground: "#61AFEF"} broken_symlink: {foreground: "#E06C75"} broken_path_overlay: {foreground: "#5C6370"} - diff --git a/themes/rose-pine-dawn.yml b/themes/rose-pine-dawn.yml index 37afa9d..b354cbc 100644 --- a/themes/rose-pine-dawn.yml +++ b/themes/rose-pine-dawn.yml @@ -1,3 +1,4 @@ +--- colourful: true # Colors are in format of: diff --git a/themes/rose-pine-moon.yml b/themes/rose-pine-moon.yml index b47a742..f735b3e 100644 --- a/themes/rose-pine-moon.yml +++ b/themes/rose-pine-moon.yml @@ -1,3 +1,4 @@ +--- colourful: true # Colors are in format of: diff --git a/themes/rose-pine.yml b/themes/rose-pine.yml index 94e3111..52aca8e 100644 --- a/themes/rose-pine.yml +++ b/themes/rose-pine.yml @@ -1,3 +1,4 @@ +--- colourful: true # Colors are in format of: diff --git a/themes/tokyonight.yml b/themes/tokyonight.yml index f34037f..bb8bc0b 100644 --- a/themes/tokyonight.yml +++ b/themes/tokyonight.yml @@ -1,3 +1,4 @@ +--- colourful: true filekinds: diff --git a/themes/white.yml b/themes/white.yml index f77d2dc..cc623ca 100644 --- a/themes/white.yml +++ b/themes/white.yml @@ -1,3 +1,4 @@ +--- colourful: false filekinds: @@ -102,9 +103,9 @@ broken_symlink: {foreground: "#fff"} broken_path_overlay: {foreground: "#fff"} filenames: - # Custom filename-based overrides - # Cargo.toml: {icon: {glyph: 🦀}} +# Custom filename-based overrides +# Cargo.toml: {icon: {glyph: 🦀}} extensions: - # Custom extension-based overrides - # rs: {filename: {foreground: Red}, icon: {glyph: 🦀}} +# Custom extension-based overrides +# rs: {filename: {foreground: Red}, icon: {glyph: 🦀}}