From 6e349cee96828c60fd4dfded494af0e15b73c147 Mon Sep 17 00:00:00 2001 From: abebus Date: Sun, 27 Jul 2025 23:18:11 +0300 Subject: [PATCH 1/6] fix wrongly running macos workflow on ubunti-latest + formatting --- .github/workflows/tests-macos.yml | 40 ++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 14 deletions(-) diff --git a/.github/workflows/tests-macos.yml b/.github/workflows/tests-macos.yml index 30fe097..f1ecc36 100644 --- a/.github/workflows/tests-macos.yml +++ b/.github/workflows/tests-macos.yml @@ -11,25 +11,37 @@ on: jobs: tests: - runs-on: ubuntu-latest strategy: fail-fast: false matrix: - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14.0-rc.1"] + os: + - macos-latest + - macos-13 + python-version: + - "3.9" + - "3.10" + - "3.11" + - "3.12" + - "3.13" + - "3.14.0-rc.1" + - "pypy3.10" + - "pypy3.11" + + runs-on: "${{ matrix.os }}" steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} + - name: "Set up Python ${{ matrix.python-version }}" + uses: actions/setup-python@v5 + with: + python-version: "${{ matrix.python-version }}" - - name: Run tests - run: | - pip install --upgrade pip - pip install --upgrade tox - tox -e py + - name: Run tests + run: | + pip install --upgrade pip + pip install --upgrade tox + tox -e py - - name: Upload coverage report - uses: codecov/codecov-action@v5 + - name: Upload coverage report + uses: codecov/codecov-action@v5 From ab3d47dcd45c9c43b1b63f0da718e06f6200765d Mon Sep 17 00:00:00 2001 From: abebus Date: Mon, 28 Jul 2025 09:33:55 +0300 Subject: [PATCH 2/6] =?UTF-8?q?Make=20all=20Python=20version=20values=20st?= =?UTF-8?q?rings=20in=20double=20quotes=20for=20the=20sake=20of=20consiste?= =?UTF-8?q?ncy,=20due=20to=20the=20interesting=20relationship=20of=20YAML?= =?UTF-8?q?=20with=20fractional=20numbers.=20Format=20all=20workflow=20fil?= =?UTF-8?q?es=20with=20the=20`redhat.vscode-yaml=20=E2=81=A3`=20VS=20Code?= =?UTF-8?q?=20extension.=20I=20believe=20it=20can=20be=20done=20with=20CLI?= =?UTF-8?q?=20or=20in=20a=20pre-commit=20hook=20or=20in=20a=20tox=20step;?= =?UTF-8?q?=20it=20needs=20investigation.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/checks.yml | 54 ++++++++++++++--------------- .github/workflows/publish.yml | 38 ++++++++++---------- .github/workflows/tests-macos.yml | 7 ++-- .github/workflows/tests-ubuntu.yml | 36 +++++++++++-------- .github/workflows/tests-windows.yml | 36 +++++++++++-------- 5 files changed, 93 insertions(+), 78 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 843134f..be71642 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -10,39 +10,39 @@ on: jobs: build: - runs-on: ubuntu-latest + strategy: fail-fast: false matrix: include: - - python-version: "3.13" # Keep in sync with .readthedocs.yml - env: - TOXENV: docs - - python-version: "3.13" - env: - TOXENV: pre-commit - - python-version: "3.13" - env: - TOXENV: pylint - - python-version: "3.13" - env: - TOXENV: typing - - python-version: "3.13" - env: - TOXENV: twinecheck + - python-version: "3.13" # Keep in sync with .readthedocs.yml + env: + TOXENV: docs + - python-version: "3.13" + env: + TOXENV: pre-commit + - python-version: "3.13" + env: + TOXENV: pylint + - python-version: "3.13" + env: + TOXENV: typing + - python-version: "3.13" + env: + TOXENV: twinecheck steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} - - name: Run check - env: ${{ matrix.env }} - run: | - pip install --upgrade pip - pip install --upgrade tox - tox + - name: Run check + env: ${{ matrix.env }} + run: | + pip install --upgrade pip + pip install --upgrade tox + tox diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f6e80b9..ccc7e5b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,25 +10,25 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - - name: Set up Python 3.13 - uses: actions/setup-python@v5 - with: - python-version: 3.13 + - name: Set up Python 3.13 + uses: actions/setup-python@v5 + with: + python-version: "3.13" - - name: Check Tag - id: check-release-tag - run: | - if [[ ${{ github.event.ref }} =~ ^refs/tags/v[0-9]+[.][0-9]+[.][0-9]+(rc[0-9]+|[.]dev[0-9]+)?$ ]]; then - echo ::set-output name=release_tag::true - fi + - name: Check Tag + id: check-release-tag + run: | + if [[ ${{ github.event.ref }} =~ ^refs/tags/v[0-9]+[.][0-9]+[.][0-9]+(rc[0-9]+|[.]dev[0-9]+)?$ ]]; then + echo ::set-output name=release_tag::true + fi - - name: Publish to PyPI - if: steps.check-release-tag.outputs.release_tag == 'true' - run: | - pip install --upgrade build twine - python -m build - export TWINE_USERNAME=__token__ - export TWINE_PASSWORD=${{ secrets.PYPI_TOKEN }} - twine upload dist/* + - name: Publish to PyPI + if: steps.check-release-tag.outputs.release_tag == 'true' + run: | + pip install --upgrade build twine + python -m build + export TWINE_USERNAME=__token__ + export TWINE_PASSWORD=${{ secrets.PYPI_TOKEN }} + twine upload dist/* diff --git a/.github/workflows/tests-macos.yml b/.github/workflows/tests-macos.yml index f1ecc36..6b5e6ce 100644 --- a/.github/workflows/tests-macos.yml +++ b/.github/workflows/tests-macos.yml @@ -10,6 +10,7 @@ on: jobs: tests: + runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -27,15 +28,13 @@ jobs: - "pypy3.10" - "pypy3.11" - runs-on: "${{ matrix.os }}" - steps: - uses: actions/checkout@v4 - - name: "Set up Python ${{ matrix.python-version }}" + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: - python-version: "${{ matrix.python-version }}" + python-version: ${{ matrix.python-version }} - name: Run tests run: | diff --git a/.github/workflows/tests-ubuntu.yml b/.github/workflows/tests-ubuntu.yml index 2358254..815936a 100644 --- a/.github/workflows/tests-ubuntu.yml +++ b/.github/workflows/tests-ubuntu.yml @@ -10,26 +10,34 @@ on: jobs: tests: - runs-on: ubuntu-latest + strategy: fail-fast: false matrix: - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14.0-rc.1", "pypy3.10", "pypy3.11"] + python-version: + - "3.9" + - "3.10" + - "3.11" + - "3.12" + - "3.13" + - "3.14.0-rc.1" + - "pypy3.10" + - "pypy3.11" steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} - - name: Run tests - run: | - pip install --upgrade pip - pip install --upgrade tox - tox -e py + - name: Run tests + run: | + pip install --upgrade pip + pip install --upgrade tox + tox -e py - - name: Upload coverage report - uses: codecov/codecov-action@v5 + - name: Upload coverage report + uses: codecov/codecov-action@v5 diff --git a/.github/workflows/tests-windows.yml b/.github/workflows/tests-windows.yml index 9087e72..60827ac 100644 --- a/.github/workflows/tests-windows.yml +++ b/.github/workflows/tests-windows.yml @@ -10,26 +10,34 @@ on: jobs: tests: - runs-on: windows-latest + strategy: fail-fast: false matrix: - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14.0-rc.1"] + python-version: + - "3.9" + - "3.10" + - "3.11" + - "3.12" + - "3.13" + - "3.14.0-rc.1" + - "pypy3.10" + - "pypy3.11" steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} - - name: Run tests - run: | - pip install --upgrade pip - pip install --upgrade tox - tox -e py + - name: Run tests + run: | + pip install --upgrade pip + pip install --upgrade tox + tox -e py - - name: Upload coverage report - uses: codecov/codecov-action@v5 + - name: Upload coverage report + uses: codecov/codecov-action@v5 From 5f5e401fa64e0b625e85d6f9d3f6143dade15d58 Mon Sep 17 00:00:00 2001 From: abebus Date: Tue, 5 Aug 2025 20:36:29 +0300 Subject: [PATCH 3/6] exclude macos-13 from matrix --- .github/workflows/tests-macos.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/tests-macos.yml b/.github/workflows/tests-macos.yml index 6b5e6ce..f72388d 100644 --- a/.github/workflows/tests-macos.yml +++ b/.github/workflows/tests-macos.yml @@ -10,14 +10,11 @@ on: jobs: tests: - runs-on: ${{ matrix.os }} + runs-on: macos-latest strategy: fail-fast: false matrix: - os: - - macos-latest - - macos-13 python-version: - "3.9" - "3.10" From 40bdec294d8e89d85f79f49a69850a7e504140af Mon Sep 17 00:00:00 2001 From: abebus Date: Wed, 6 Aug 2025 19:21:45 +0300 Subject: [PATCH 4/6] add yamlfmt --- .pre-commit-config.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 119b328..23b8406 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,3 +20,7 @@ repos: rev: v1.0.0 hooks: - id: sphinx-lint +- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt + rev: 0.2.3 + hooks: + - id: yamlfmt \ No newline at end of file From 2c8dccfe65f85bbaeaf0f5acbaca491fe74c4987 Mon Sep 17 00:00:00 2001 From: abebus Date: Wed, 6 Aug 2025 19:49:10 +0300 Subject: [PATCH 5/6] add yamllint, run pre-commit, explicitly specify yaml version spec in gh workflows, so yamllint will allow "on" as key --- .github/workflows/checks.yml | 81 +++++++++++++++-------------- .github/workflows/publish.yml | 53 ++++++++++--------- .github/workflows/tests-macos.yml | 68 ++++++++++++------------ .github/workflows/tests-ubuntu.yml | 68 ++++++++++++------------ .github/workflows/tests-windows.yml | 68 ++++++++++++------------ .pre-commit-config.yaml | 56 +++++++++++--------- .readthedocs.yml | 21 ++++---- codecov.yml | 7 +-- 8 files changed, 221 insertions(+), 201 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index be71642..b734587 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -1,48 +1,51 @@ +%YAML 1.2 +--- name: Checks on: - push: - branches: - - master - pull_request: - branches: - - master + push: + branches: + - master + pull_request: + branches: + - master jobs: - build: - runs-on: ubuntu-latest + build: + runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - include: - - python-version: "3.13" # Keep in sync with .readthedocs.yml - env: - TOXENV: docs - - python-version: "3.13" - env: - TOXENV: pre-commit - - python-version: "3.13" - env: - TOXENV: pylint - - python-version: "3.13" - env: - TOXENV: typing - - python-version: "3.13" - env: - TOXENV: twinecheck + strategy: + fail-fast: false + matrix: + include: + # Keep in sync with .readthedocs.yml + - python-version: '3.13' + env: + TOXENV: docs + - python-version: '3.13' + env: + TOXENV: pre-commit + - python-version: '3.13' + env: + TOXENV: pylint + - python-version: '3.13' + env: + TOXENV: typing + - python-version: '3.13' + env: + TOXENV: twinecheck - steps: - - uses: actions/checkout@v4 + steps: + - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} - - name: Run check - env: ${{ matrix.env }} - run: | - pip install --upgrade pip - pip install --upgrade tox - tox + - name: Run check + env: ${{ matrix.env }} + run: | + pip install --upgrade pip + pip install --upgrade tox + tox diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ccc7e5b..71d3f70 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,34 +1,37 @@ +%YAML 1.2 +--- name: Publish on: - push: - tags: - - v* + push: + tags: + - v* jobs: - publish: - runs-on: ubuntu-latest + publish: + runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 + steps: + - uses: actions/checkout@v4 - - name: Set up Python 3.13 - uses: actions/setup-python@v5 - with: - python-version: "3.13" + - name: Set up Python 3.13 + uses: actions/setup-python@v5 + with: + python-version: '3.13' - - name: Check Tag - id: check-release-tag - run: | - if [[ ${{ github.event.ref }} =~ ^refs/tags/v[0-9]+[.][0-9]+[.][0-9]+(rc[0-9]+|[.]dev[0-9]+)?$ ]]; then - echo ::set-output name=release_tag::true - fi + - name: Check Tag + id: check-release-tag + run: | + RE="^refs/tags/v[0-9]+[.][0-9]+[.][0-9]+(rc[0-9]+|[.]dev[0-9]+)?$" + if [[ ${{ github.event.ref }} =~ $RE ]]; then + echo ::set-output name=release_tag::true + fi - - name: Publish to PyPI - if: steps.check-release-tag.outputs.release_tag == 'true' - run: | - pip install --upgrade build twine - python -m build - export TWINE_USERNAME=__token__ - export TWINE_PASSWORD=${{ secrets.PYPI_TOKEN }} - twine upload dist/* + - name: Publish to PyPI + if: steps.check-release-tag.outputs.release_tag == 'true' + run: | + pip install --upgrade build twine + python -m build + export TWINE_USERNAME=__token__ + export TWINE_PASSWORD=${{ secrets.PYPI_TOKEN }} + twine upload dist/* diff --git a/.github/workflows/tests-macos.yml b/.github/workflows/tests-macos.yml index f72388d..4e2e344 100644 --- a/.github/workflows/tests-macos.yml +++ b/.github/workflows/tests-macos.yml @@ -1,43 +1,45 @@ +%YAML 1.2 +--- name: macOS on: - push: - branches: - - master - pull_request: - branches: - - master + push: + branches: + - master + pull_request: + branches: + - master jobs: - tests: - runs-on: macos-latest + tests: + runs-on: macos-latest - strategy: - fail-fast: false - matrix: - python-version: - - "3.9" - - "3.10" - - "3.11" - - "3.12" - - "3.13" - - "3.14.0-rc.1" - - "pypy3.10" - - "pypy3.11" + strategy: + fail-fast: false + matrix: + python-version: + - '3.9' + - '3.10' + - '3.11' + - '3.12' + - '3.13' + - 3.14.0-rc.1 + - pypy3.10 + - pypy3.11 - steps: - - uses: actions/checkout@v4 + steps: + - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} - - name: Run tests - run: | - pip install --upgrade pip - pip install --upgrade tox - tox -e py + - name: Run tests + run: | + pip install --upgrade pip + pip install --upgrade tox + tox -e py - - name: Upload coverage report - uses: codecov/codecov-action@v5 + - name: Upload coverage report + uses: codecov/codecov-action@v5 diff --git a/.github/workflows/tests-ubuntu.yml b/.github/workflows/tests-ubuntu.yml index 815936a..b1c6774 100644 --- a/.github/workflows/tests-ubuntu.yml +++ b/.github/workflows/tests-ubuntu.yml @@ -1,43 +1,45 @@ +%YAML 1.2 +--- name: Ubuntu on: - push: - branches: - - master - pull_request: - branches: - - master + push: + branches: + - master + pull_request: + branches: + - master jobs: - tests: - runs-on: ubuntu-latest + tests: + runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - python-version: - - "3.9" - - "3.10" - - "3.11" - - "3.12" - - "3.13" - - "3.14.0-rc.1" - - "pypy3.10" - - "pypy3.11" + strategy: + fail-fast: false + matrix: + python-version: + - '3.9' + - '3.10' + - '3.11' + - '3.12' + - '3.13' + - 3.14.0-rc.1 + - pypy3.10 + - pypy3.11 - steps: - - uses: actions/checkout@v4 + steps: + - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} - - name: Run tests - run: | - pip install --upgrade pip - pip install --upgrade tox - tox -e py + - name: Run tests + run: | + pip install --upgrade pip + pip install --upgrade tox + tox -e py - - name: Upload coverage report - uses: codecov/codecov-action@v5 + - name: Upload coverage report + uses: codecov/codecov-action@v5 diff --git a/.github/workflows/tests-windows.yml b/.github/workflows/tests-windows.yml index 60827ac..2e5df73 100644 --- a/.github/workflows/tests-windows.yml +++ b/.github/workflows/tests-windows.yml @@ -1,43 +1,45 @@ +%YAML 1.2 +--- name: Windows on: - push: - branches: - - master - pull_request: - branches: - - master + push: + branches: + - master + pull_request: + branches: + - master jobs: - tests: - runs-on: windows-latest + tests: + runs-on: windows-latest - strategy: - fail-fast: false - matrix: - python-version: - - "3.9" - - "3.10" - - "3.11" - - "3.12" - - "3.13" - - "3.14.0-rc.1" - - "pypy3.10" - - "pypy3.11" + strategy: + fail-fast: false + matrix: + python-version: + - '3.9' + - '3.10' + - '3.11' + - '3.12' + - '3.13' + - 3.14.0-rc.1 + - pypy3.10 + - pypy3.11 - steps: - - uses: actions/checkout@v4 + steps: + - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} - - name: Run tests - run: | - pip install --upgrade pip - pip install --upgrade tox - tox -e py + - name: Run tests + run: | + pip install --upgrade pip + pip install --upgrade tox + tox -e py - - name: Upload coverage report - uses: codecov/codecov-action@v5 + - name: Upload coverage report + uses: codecov/codecov-action@v5 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 23b8406..62d81cf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,26 +1,32 @@ +--- repos: -- repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.5 - hooks: - - id: ruff-check - args: [ --fix ] - - id: ruff-format -- repo: https://github.com/adamchainz/blacken-docs - rev: 1.19.1 - hooks: - - id: blacken-docs - additional_dependencies: - - black==25.1.0 -- repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 - hooks: - - id: end-of-file-fixer - - id: trailing-whitespace -- repo: https://github.com/sphinx-contrib/sphinx-lint - rev: v1.0.0 - hooks: - - id: sphinx-lint -- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt - rev: 0.2.3 - hooks: - - id: yamlfmt \ No newline at end of file + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.12.5 + hooks: + - id: ruff-check + args: [--fix] + - id: ruff-format + - repo: https://github.com/adamchainz/blacken-docs + rev: 1.19.1 + hooks: + - id: blacken-docs + additional_dependencies: + - black==25.1.0 + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v5.0.0 + hooks: + - id: end-of-file-fixer + - id: trailing-whitespace + - repo: https://github.com/sphinx-contrib/sphinx-lint + rev: v1.0.0 + hooks: + - id: sphinx-lint + - repo: https://github.com/adrienverge/yamllint.git + rev: v1.37.1 + hooks: + - id: yamllint + args: [--format, parsable, --strict] + - repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt + rev: 0.2.3 + hooks: + - id: yamlfmt diff --git a/.readthedocs.yml b/.readthedocs.yml index 2b53eb1..a9c62c2 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -1,15 +1,16 @@ +--- version: 2 formats: all sphinx: - configuration: docs/conf.py - fail_on_warning: true + configuration: docs/conf.py + fail_on_warning: true build: - os: ubuntu-24.04 - tools: - # For available versions, see: - # https://docs.readthedocs.io/en/stable/config-file/v2.html#build-tools-python - python: "3.13" # Keep in sync with .github/workflows/build.yml + os: ubuntu-24.04 + tools: + # For available versions, see: + # https://docs.readthedocs.io/en/stable/config-file/v2.html#build-tools-python + python: '3.13' # Keep in sync with .github/workflows/build.yml python: - install: - - requirements: docs/requirements.txt - - path: . + install: + - requirements: docs/requirements.txt + - path: . diff --git a/codecov.yml b/codecov.yml index d8aa6b9..c8661fb 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,6 +1,7 @@ +--- comment: - layout: "header, diff, tree" + layout: header, diff, tree coverage: - status: - project: false + status: + project: false From a75f303ae1c33113ef8ebe58c2034da06bb7a3f7 Mon Sep 17 00:00:00 2001 From: abebus Date: Wed, 6 Aug 2025 19:54:20 +0300 Subject: [PATCH 6/6] ok, just don't check keys with `truthy` rule --- .github/workflows/checks.yml | 1 - .github/workflows/publish.yml | 1 - .github/workflows/tests-macos.yml | 1 - .github/workflows/tests-ubuntu.yml | 1 - .github/workflows/tests-windows.yml | 1 - .pre-commit-config.yaml | 2 +- 6 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index b734587..4d6b5a9 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -1,4 +1,3 @@ -%YAML 1.2 --- name: Checks diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 71d3f70..5cb1ffb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,3 @@ -%YAML 1.2 --- name: Publish diff --git a/.github/workflows/tests-macos.yml b/.github/workflows/tests-macos.yml index 4e2e344..6682858 100644 --- a/.github/workflows/tests-macos.yml +++ b/.github/workflows/tests-macos.yml @@ -1,4 +1,3 @@ -%YAML 1.2 --- name: macOS diff --git a/.github/workflows/tests-ubuntu.yml b/.github/workflows/tests-ubuntu.yml index b1c6774..7f05f94 100644 --- a/.github/workflows/tests-ubuntu.yml +++ b/.github/workflows/tests-ubuntu.yml @@ -1,4 +1,3 @@ -%YAML 1.2 --- name: Ubuntu diff --git a/.github/workflows/tests-windows.yml b/.github/workflows/tests-windows.yml index 2e5df73..c846e54 100644 --- a/.github/workflows/tests-windows.yml +++ b/.github/workflows/tests-windows.yml @@ -1,4 +1,3 @@ -%YAML 1.2 --- name: Windows diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 62d81cf..7c59a32 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,7 +25,7 @@ repos: rev: v1.37.1 hooks: - id: yamllint - args: [--format, parsable, --strict] + args: [--format, parsable, --strict, -d, '{rules: {truthy: {check-keys: false}}}'] - repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt rev: 0.2.3 hooks: