diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f7498a36..9c2f7e36 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,10 +16,10 @@ repos: - id: fix-encoding-pragma - id: detect-private-key - id: trailing-whitespace - - repo: https://github.com/asottile/add-trailing-comma - rev: v3.1.0 - hooks: - - id: add-trailing-comma + - id: end-of-file-fixer + - id: check-merge-conflict + - id: check-symlinks + - id: mixed-line-ending - repo: https://github.com/pre-commit/mirrors-mypy rev: v1.7.0 hooks: @@ -102,3 +102,27 @@ repos: hooks: - id: pyroma args: [ --min=10, . ] + - repo: https://github.com/pappasam/toml-sort + rev: v0.23.1 + hooks: + - id: toml-sort-fix + exclude: ".*poetry.lock" + - repo: https://github.com/srstevenson/nb-clean + rev: 3.1.0 + hooks: + - id: nb-clean + args: [ --preserve-cell-outputs, --remove-empty-cells ] + - repo: https://github.com/codespell-project/codespell + rev: v2.2.6 + hooks: + - id: codespell + additional_dependencies: [ tomli ] + exclude: | + poetry.lock| + (\/.*?\.[\w:]+)/pyproject.toml| + (\/.*?\.[\w:]+)/poetry.lock + args: + [ + "--ignore-words-list", + "astroid,gallary,momento,narl,ot,rouge,nin,gere,asend", + ]