Skip to content

Commit cb211c0

Browse files
committed
update
1 parent 412b0a6 commit cb211c0

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

template/Justfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ clean:
4646
typecheck: _require-uv
4747
uv run mypy
4848

49+
# check code for common misspellings
50+
spell:
51+
codespell
52+
4953
# run all quality checks
5054
check: format lint coverage typecheck
5155

@@ -56,4 +60,3 @@ help:
5660
alias fmt := format
5761
alias cov := coverage
5862
alias mypy := typecheck
59-
alias type := typecheck

template/pyproject.toml.jinja

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ source = ["{{ package_name }}"]
102102
branch = true
103103

104104
[tool.coverage.report]
105+
exclude_lines = [
106+
'pragma: no cover',
107+
'raise NotImplementedError',
108+
'if TYPE_CHECKING:',
109+
'if typing.TYPE_CHECKING:',
110+
]
105111
omit = [
106112
"tests/*",
107113
"tests/**",
@@ -218,3 +224,6 @@ known-first-party = ["{{ package_name }}", "tests"]
218224

219225
[tool.ruff.lint.pydocstyle]
220226
convention = "google"
227+
228+
[tool.codespell]
229+
skip = '.git,uv.lock'

0 commit comments

Comments
 (0)