Skip to content

Commit

Permalink
feat: introduce crate-ci/typos
Browse files Browse the repository at this point in the history
  • Loading branch information
pplmx committed Aug 30, 2024
1 parent 21a4cb5 commit 1ccf903
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 8 deletions.
1 change: 0 additions & 1 deletion template/cxx/{{cookiecutter.project_slug}}/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -520,4 +520,3 @@ MigrationBackup/

# Fody - auto-generated XML schema
FodyWeavers.xsd

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ repos:
- id: mixed-line-ending
args: [ --fix=lf ]
- id: trailing-whitespace
- repo: https://github.com/crate-ci/typos
rev: v1.24.1
hooks:
- id: typos
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.29.0
hooks:
- id: commitizen
- id: commitizen-branch
stages: [ push ]
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@ repos:
- id: mixed-line-ending
args: [ --fix=lf ]
- id: trailing-whitespace
- repo: https://github.com/crate-ci/typos
rev: v1.24.1
hooks:
- id: typos
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.29.0
hooks:
- id: commitizen
- id: commitizen-branch
stages: [ push ]
- repo: https://github.com/golangci/golangci-lint
rev: v1.56.2
hooks:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ jobs:
uv sync
uvx hatch build
uvx hatch test
{% endraw %}
{% endraw -%}
1 change: 0 additions & 1 deletion template/py/{{cookiecutter.project_slug}}/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,3 @@ dmypy.json

# Cython debug symbols
cython_debug/

14 changes: 11 additions & 3 deletions template/py/{{cookiecutter.project_slug}}/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,23 @@ repos:
- id: mixed-line-ending
args: [ --fix=lf ]
- id: trailing-whitespace
- repo: https://github.com/crate-ci/typos
rev: v1.24.1
hooks:
- id: typos
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.29.0
hooks:
- id: commitizen
- id: commitizen-branch
stages: [ push ]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.1
rev: v0.6.3
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.4.0
hooks:
- id: uv-lock
2 changes: 1 addition & 1 deletion template/py/{{cookiecutter.project_slug}}/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ APP_NAME := {{cookiecutter.project_slug}}

# Init the venv
init: sync
@uvx pre-commit install
@uvx pre-commit install --hook-type commit-msg --hook-type pre-push

# Sync the project with the venv
sync:
Expand Down
1 change: 0 additions & 1 deletion template/ts/{{cookiecutter.project_slug}}/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,3 @@ out
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

0 comments on commit 1ccf903

Please sign in to comment.