Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@ repos:
args: ["--config=.github/bake.toml"]
- id: mbake-validate

- repo: https://github.com/crate-ci/typos
rev: v1.46.1
hooks:
- id: typos

- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
hooks:
- id: codespell
additional_dependencies:
- tomli

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
Expand Down
20 changes: 20 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,23 @@ enable_error_code = [
"unimported-reveal",
"deprecated",
]


[tool.codespell]
# codespell configuration: https://github.com/codespell-project/codespell
skip = [
"__pycache__",
"_build",
".mypy_cache",
"*.lock",
]


[tool.typos.files]
# typos configuration: https://github.com/crate-ci/typos/
extend-exclude = [
"__pycache__",
"_build",
".mypy_cache",
"*.lock",
]
2 changes: 1 addition & 1 deletion tests/test_project_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def test_pyproject_toml(cookies: Cookies, context: dict[str, str]) -> None:
('prompt', 'entered_value'),
[
('project_name', 'myProject'),
('project_name', '43prject'),
('project_name', '43project'),
('project_name', '_test'),
('project_name', '-test'),
('project_name', 'test-'),
Expand Down
13 changes: 13 additions & 0 deletions {{cookiecutter.project_name}}/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ repos:
hooks:
- id: shellcheck
args: ["--severity=style"]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.11
hooks:
Expand All @@ -46,6 +47,18 @@ repos:
args: ["--config=.github/bake.toml"]
- id: mbake-validate

- repo: https://github.com/crate-ci/typos
rev: v1.46.1
hooks:
- id: typos

- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
hooks:
- id: codespell
additional_dependencies:
- tomli

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
Expand Down
20 changes: 20 additions & 0 deletions {{cookiecutter.project_name}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,23 @@ enable_error_code = [
"unimported-reveal",
"deprecated",
]


[tool.codespell]
# codespell configuration: https://github.com/codespell-project/codespell
skip = [
"__pycache__",
"_build",
".mypy_cache",
"*.lock",
]


[tool.typos.files]
# typos configuration: https://github.com/crate-ci/typos/
extend-exclude = [
"__pycache__",
"_build",
".mypy_cache",
"*.lock",
]