diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5e42792..9637ca7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,18 +1,22 @@ -# See https://pre-commit.com for more information -# See https://pre-commit.com/hooks.html for more hooks repos: -- repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.5.0 hooks: - - id: trailing-whitespace - - id: end-of-file-fixer - - id: requirements-txt-fixer -- repo: https://github.com/astral-sh/ruff-pre-commit - # Ruff version. + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace + - id: detect-private-key + - id: detect-aws-credentials + args: [--allow-missing-credentials] + - id: check-added-large-files + - repo: https://github.com/PyCQA/bandit + rev: 1.7.8 + hooks: + - id: bandit + additional_dependencies: ["bandit[toml]"] + - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.3.5 hooks: - # Run the linter. - - id: ruff - args: [ --fix ] - # Run the formatter. - - id: ruff-format + - id: ruff + args: ["--preview", "--fix"] + - id: ruff-format