From 3dbe9352745bf99ca6a072fe8af298ae2d53ab53 Mon Sep 17 00:00:00 2001 From: Christian Ledermann Date: Tue, 8 Oct 2024 10:54:00 +0100 Subject: [PATCH 1/6] Update pre-commit hooks configuration to include checkers for the pyproject.toml file --- .pre-commit-config.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 02fe2917..938232ba 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -40,3 +40,27 @@ repos: hooks: - id: mypy additional_dependencies: [cryptography>=3.4.0] + + - repo: https://github.com/abravalheri/validate-pyproject + rev: "v0.20.2" + hooks: + - id: validate-pyproject + + - repo: https://github.com/kieran-ryan/pyprojectsort + rev: "v0.3.0" + hooks: + - id: pyprojectsort + + - repo: https://github.com/python-jsonschema/check-jsonschema + rev: "0.29.3" + hooks: + - id: check-github-workflows + - id: check-github-actions + - id: check-readthedocs + + - repo: https://github.com/regebro/pyroma + rev: "4.2" + hooks: + - id: pyroma + +... From 0845ce37f066e5616715fb13945bd31de5a7c056 Mon Sep 17 00:00:00 2001 From: Christian Ledermann Date: Tue, 8 Oct 2024 11:11:53 +0100 Subject: [PATCH 2/6] update changelog for #1002 --- CHANGELOG.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index d23dccd8..1ea1758b 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -33,6 +33,8 @@ Fixed Added ~~~~~ +- Include checkers and linters for ``pyproject.toml`` in ``pre-commit`` by @cleder in `#1002 `__ + `v2.9.0 `__ ----------------------------------------------------------------------- From fa1c80142a586467568b71e3b6eaa97159011b55 Mon Sep 17 00:00:00 2001 From: Christian Ledermann Date: Tue, 8 Oct 2024 11:35:48 +0100 Subject: [PATCH 3/6] fix version pattern for changelog enforcer --- .github/workflows/enforce-changelog-entry.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/enforce-changelog-entry.yml b/.github/workflows/enforce-changelog-entry.yml index 29b0a3b7..9f190349 100644 --- a/.github/workflows/enforce-changelog-entry.yml +++ b/.github/workflows/enforce-changelog-entry.yml @@ -14,3 +14,4 @@ jobs: - uses: dangoslen/changelog-enforcer@204e7d3ef26579f4cd0fd759c57032656fdf23c7 # v3.6.1 with: skipLabels: 'Skip-Changelog,dependencies,tests' + versionPattern: '^`Unreleased <\S+>`__$' From 716294eb8b6ab697ea614cc749af73708b82db57 Mon Sep 17 00:00:00 2001 From: Christian Ledermann Date: Tue, 8 Oct 2024 11:36:11 +0100 Subject: [PATCH 4/6] fix version pattern for changelog enforcer --- .github/workflows/enforce-changelog-entry.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/enforce-changelog-entry.yml b/.github/workflows/enforce-changelog-entry.yml index 9f190349..42dd2c19 100644 --- a/.github/workflows/enforce-changelog-entry.yml +++ b/.github/workflows/enforce-changelog-entry.yml @@ -14,4 +14,4 @@ jobs: - uses: dangoslen/changelog-enforcer@204e7d3ef26579f4cd0fd759c57032656fdf23c7 # v3.6.1 with: skipLabels: 'Skip-Changelog,dependencies,tests' - versionPattern: '^`Unreleased <\S+>`__$' + versionPattern: ^`(v\\d?\\.\\d?\\.\\d|Unreleased) <\\S+>`__ From af6d31a40b3e8f6824fba5eab35b140d7ce936be Mon Sep 17 00:00:00 2001 From: Christian Ledermann Date: Tue, 8 Oct 2024 11:39:09 +0100 Subject: [PATCH 5/6] fix changelog path changelog enforcer --- .github/workflows/enforce-changelog-entry.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/enforce-changelog-entry.yml b/.github/workflows/enforce-changelog-entry.yml index 42dd2c19..76832305 100644 --- a/.github/workflows/enforce-changelog-entry.yml +++ b/.github/workflows/enforce-changelog-entry.yml @@ -15,3 +15,4 @@ jobs: with: skipLabels: 'Skip-Changelog,dependencies,tests' versionPattern: ^`(v\\d?\\.\\d?\\.\\d|Unreleased) <\\S+>`__ + changeLogPath: CHANGELOG.rst From d13aa22fb9be8be577240c2bc08c5a35bd98701e Mon Sep 17 00:00:00 2001 From: Christian Ledermann Date: Tue, 8 Oct 2024 11:57:08 +0100 Subject: [PATCH 6/6] remove unused check-github-actions --- .pre-commit-config.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 938232ba..08adca4f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -55,7 +55,6 @@ repos: rev: "0.29.3" hooks: - id: check-github-workflows - - id: check-github-actions - id: check-readthedocs - repo: https://github.com/regebro/pyroma