Skip to content

Commit

Permalink
Fix content-hash; add pre-commit-check for poetry.
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Krupinski committed Nov 1, 2024
1 parent d306553 commit 298d9fb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 20 deletions.
43 changes: 25 additions & 18 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.6.9'
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.3.0
hooks:
- id: codespell
additional_dependencies:
- tomli
exclude: "^tests/|^CODE_OF_CONDUCT.md"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.6.9'
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.3.0
hooks:
- id: codespell
additional_dependencies:
- tomli
exclude: "^tests/|^CODE_OF_CONDUCT.md"
- repo: https://github.com/python-poetry/poetry
rev: 1.8.3
hooks:
- id: poetry-check
- id: poetry-lock
args:
- --no-update
3 changes: 1 addition & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 298d9fb

Please sign in to comment.