From ca5f313a53a0f6381b8d06a534785d255017eb42 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Sat, 14 Dec 2024 14:57:30 +0200 Subject: [PATCH 1/3] Don't cover typing.TYPE_CHECKING --- .coveragerc | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..7c7502e --- /dev/null +++ b/.coveragerc @@ -0,0 +1,7 @@ +# .coveragerc to control coverage.py + +[report] +# Regexes for lines to exclude from consideration +exclude_also = + # Don't complain if non-runnable code isn't run: + if TYPE_CHECKING: From 374de437b8cba491382f7b7bcdf9aa69255b7213 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Sat, 14 Dec 2024 15:00:15 +0200 Subject: [PATCH 2/3] Add zizmor to pre-commit --- .pre-commit-config.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4f6c704..d089b05 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,23 +26,28 @@ repos: exclude: \.github/ISSUE_TEMPLATE\.md|\.github/PULL_REQUEST_TEMPLATE\.md - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.29.4 + rev: 0.30.0 hooks: - id: check-github-workflows - id: check-renovate - repo: https://github.com/rhysd/actionlint - rev: v1.7.3 + rev: v1.7.4 hooks: - id: actionlint + - repo: https://github.com/woodruffw/zizmor-pre-commit + rev: v0.9.1 + hooks: + - id: zizmor + - repo: https://github.com/tox-dev/pyproject-fmt - rev: 2.4.3 + rev: v2.5.0 hooks: - id: pyproject-fmt - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.21 + rev: v0.23 hooks: - id: validate-pyproject @@ -52,7 +57,7 @@ repos: - id: tox-ini-fmt - repo: https://github.com/rbubley/mirrors-prettier - rev: v3.3.3 + rev: v3.4.2 hooks: - id: prettier args: [--prose-wrap=always, --print-width=88] From 88b904e28854f3294142aba61bb9a0ce6210686f Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Sat, 14 Dec 2024 15:01:06 +0200 Subject: [PATCH 3/3] Sentence case heading --- RELEASING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RELEASING.md b/RELEASING.md index f592187..21eba35 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -1,4 +1,4 @@ -# Release Checklist +# Release checklist - [ ] Get `main` to the appropriate code release state. [GitHub Actions](https://github.com/python-humanize/humanize/actions) should be