From 40038b5073bc82494eee7ecb8b4b1d6ce38498d9 Mon Sep 17 00:00:00 2001 From: Eric Berquist Date: Thu, 16 Oct 2025 22:56:16 -0400 Subject: [PATCH 1/3] pre-commit: add yamlfmt --- .pre-commit-config.yaml | 4 ++++ .yamlfmt.yml | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .yamlfmt.yml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 902c9f9..9f1ff56 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,6 +39,10 @@ repos: ^Turbomole| ^XTB ) + - repo: https://github.com/google/yamlfmt + rev: "v0.17.2" + hooks: + - id: yamlfmt - repo: local hooks: - id: sort-regressionfiles-yaml diff --git a/.yamlfmt.yml b/.yamlfmt.yml new file mode 100644 index 0000000..3717aa9 --- /dev/null +++ b/.yamlfmt.yml @@ -0,0 +1,34 @@ +--- +continue_on_error: false +doublestar: false +exclude: [] +extensions: + - yaml + - yml +gitignore_excludes: false +gitignore_path: .gitignore +include: [] +line_ending: lf +match_type: standard +output_format: default +regex_exclude: [] +formatter: + array_indent: 0 + disable_alias_key_correction: false + disallow_anchors: false + drop_merge_tag: false + eof_newline: true + force_array_style: "" + include_document_start: true + indent: 2 + indent_root_array: false + indentless_arrays: false + line_ending: lf + max_line_length: 0 + pad_line_comments: 2 + retain_line_breaks: false + retain_line_breaks_single: true + scan_folded_as_literal: false + strip_directives: false + trim_trailing_whitespace: true + type: basic From 2ca4497ffaa7e478eedb2b9aea9e4f55a0bed5f7 Mon Sep 17 00:00:00 2001 From: Eric Berquist Date: Thu, 16 Oct 2025 22:57:10 -0400 Subject: [PATCH 2/3] pre-commit: apply yamlfmt --- .github/workflows/nix.yml | 6 +++--- .github/workflows/pre-commit.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index 51e8849..8d45f5a 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -17,16 +17,16 @@ jobs: runs-on: ubuntu-latest steps: # Install Nix on the runner - - uses: cachix/install-nix-action@fd24c48048070c1be9acd18c9d369a83f0fe94d7 # v31 + - uses: cachix/install-nix-action@fd24c48048070c1be9acd18c9d369a83f0fe94d7 # v31 with: nix_path: nixpkgs=channel:nixos-unstable # Pull from the cachix cache - - uses: cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16 + - uses: cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16 with: name: cclib authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' # Checkout of the current head in the working dir - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 with: persist-credentials: false - name: Check nix flake diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 25d66b5..b2c9fa9 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -15,11 +15,11 @@ jobs: pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 with: persist-credentials: false - - uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6 + - uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6 - name: install dependencies for sorting regressionfiles.yaml run: | python -m pip install 'ruamel.yaml' - - uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 + - uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 From 7721c3076a785da39f3fec8b46d2925958110439 Mon Sep 17 00:00:00 2001 From: Eric Berquist Date: Thu, 16 Oct 2025 22:58:35 -0400 Subject: [PATCH 3/3] .git-blame-ignore-revs --- .git-blame-ignore-revs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index 1006db2..ca2c1b4 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -1,2 +1,5 @@ # sort lines in regressionfiles.txt 1c01a3f1750a1d8c7bb92527175ccc29e4bf961e + +# pre-commit: apply yamlfmt +2ca4497ffaa7e478eedb2b9aea9e4f55a0bed5f7