--- a +++ b/.pre-commit-config.yaml @@ -0,0 +1,38 @@ +repos: +- hooks: + - id: black + repo: https://github.com/psf/black + rev: 25.1.0 +- hooks: + - id: isort + repo: https://github.com/pycqa/isort + rev: 6.0.1 +- hooks: + - id: flake8 + repo: https://github.com/pycqa/flake8 + rev: 7.1.2 +- hooks: + - id: bandit + repo: https://github.com/PyCQA/bandit + rev: 1.8.3 +- hooks: + - id: check-json + - id: check-toml + - id: end-of-file-fixer + exclude: "output/.*\\.json$" + - id: trailing-whitespace + - id: check-yaml + - id: detect-private-key + - id: debug-statements + - id: check-merge-conflict + - id: check-added-large-files + args: ["--maxkb=102400"] + repo: https://github.com/pre-commit/pre-commit-hooks + rev: v5.0.0 +- hooks: + - id: commitizen + - id: commitizen-branch + stages: + - pre-push + repo: https://github.com/commitizen-tools/commitizen + rev: v4.4.1