diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index daf970d53f7c0caacd080a3c550eb6cfc7a5816b..811aabc8aec99c9a8476c5bcae7ef856d26d00e8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -34,13 +34,11 @@ repos: args: [ "--write-changes", "--ignore-words-list", "asend" ] exclude: "poetry.lock" - - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 hooks: - id: check-vcs-permalinks - id: end-of-file-fixer - # exclude: "tests/((commands|data)/|test_).+" - id: trailing-whitespace args: [ --markdown-linebreak-ext=md ] - id: debug-statements @@ -60,8 +58,24 @@ repos: - post-commit - push - - repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook - rev: v9.11.0 + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.0.290 + hooks: + - id: ruff + types_or: [python, pyi, jupyter] + + - repo: https://github.com/pre-commit/mirrors-mypy + rev: v1.8.0 + hooks: + - id: mypy + args: [--ignore-missing-imports] + + - repo: https://github.com/PyCQA/bandit + rev: 1.7.6 + hooks: + - id: bandit + + - repo: https://github.com/Lucas-C/pre-commit-hooks-safety + rev: v1.3.2 hooks: - - id: commitlint - stages: [commit-msg] + - id: python-safety-dependencies-check