mirror of
https://github.com/koxudaxi/datamodel-code-generator.git
synced 2024-03-18 14:54:37 +03:00
* Add github action to codespell main on push and PRs Signed-off-by: Yaroslav Halchenko <debian@onerussian.com> * Add rudimentary codespell config Signed-off-by: Yaroslav Halchenko <debian@onerussian.com> * Add pre-commit definition for codespell Signed-off-by: Yaroslav Halchenko <debian@onerussian.com> * skip tests and dotfiles for codespell Signed-off-by: Yaroslav Halchenko <debian@onerussian.com> * [DATALAD RUNCMD] run codespell throughout fixing typo automagically === Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ Signed-off-by: Yaroslav Halchenko <debian@onerussian.com> * Fix spells * Fix config * pre-commit: exclude tests --------- Signed-off-by: Yaroslav Halchenko <debian@onerussian.com> Co-authored-by: Koudai Aono <koxudaxi@gmail.com>
20 lines
549 B
YAML
20 lines
549 B
YAML
repos:
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: 'v0.2.1'
|
|
hooks:
|
|
- id: ruff
|
|
files: "^datamodel_code_generator|^tests"
|
|
exclude: "^tests/data"
|
|
args: [ --fix ]
|
|
- id: ruff-format
|
|
files: "^datamodel_code_generator|^tests"
|
|
exclude: "^tests/data"
|
|
- repo: https://github.com/codespell-project/codespell
|
|
# Configuration for codespell is in pyproject.toml
|
|
rev: v2.2.6
|
|
hooks:
|
|
- id: codespell
|
|
additional_dependencies:
|
|
- tomli
|
|
exclude: "^tests/"
|