Skip to content

Commit db482bb

Browse files
authored
Don't cover typing.TYPE_CHECKING (#223)
2 parents 767c7cb + 88b904e commit db482bb

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

.coveragerc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# .coveragerc to control coverage.py
2+
3+
[report]
4+
# Regexes for lines to exclude from consideration
5+
exclude_also =
6+
# Don't complain if non-runnable code isn't run:
7+
if TYPE_CHECKING:

.pre-commit-config.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,28 @@ repos:
2626
exclude: \.github/ISSUE_TEMPLATE\.md|\.github/PULL_REQUEST_TEMPLATE\.md
2727

2828
- repo: https://github.com/python-jsonschema/check-jsonschema
29-
rev: 0.29.4
29+
rev: 0.30.0
3030
hooks:
3131
- id: check-github-workflows
3232
- id: check-renovate
3333

3434
- repo: https://github.com/rhysd/actionlint
35-
rev: v1.7.3
35+
rev: v1.7.4
3636
hooks:
3737
- id: actionlint
3838

39+
- repo: https://github.com/woodruffw/zizmor-pre-commit
40+
rev: v0.9.1
41+
hooks:
42+
- id: zizmor
43+
3944
- repo: https://github.com/tox-dev/pyproject-fmt
40-
rev: 2.4.3
45+
rev: v2.5.0
4146
hooks:
4247
- id: pyproject-fmt
4348

4449
- repo: https://github.com/abravalheri/validate-pyproject
45-
rev: v0.21
50+
rev: v0.23
4651
hooks:
4752
- id: validate-pyproject
4853

@@ -52,7 +57,7 @@ repos:
5257
- id: tox-ini-fmt
5358

5459
- repo: https://github.com/rbubley/mirrors-prettier
55-
rev: v3.3.3
60+
rev: v3.4.2
5661
hooks:
5762
- id: prettier
5863
args: [--prose-wrap=always, --print-width=88]

RELEASING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Release Checklist
1+
# Release checklist
22

33
- [ ] Get `main` to the appropriate code release state.
44
[GitHub Actions](https://github.com/python-humanize/humanize/actions) should be

0 commit comments

Comments
 (0)