diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8b3dbc564..9edf63951 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,17 @@ repos: args: [--fix] - id: ruff-format types_or: [python, pyi, jupyter] - + - repo: https://github.com/psf/black + rev: 24.4.2 + hooks: + - id: black + always_run: true + pass_filenames: false + args: + - . + - --config=black.toml + - --safe + - --target-version=py311 - repo: https://github.com/pre-commit/mirrors-mypy rev: "v1.9.0" hooks: @@ -26,6 +36,15 @@ repos: types-PyYAML, types-protobuf, ] + - repo: https://github.com/Quantco/pre-commit-mirrors-prettier + rev: 3.2.5 + hooks: + - id: prettier-conda + files: "\\.(md|json|yml|yaml)$" + - repo: https://github.com/myint/docformatter + rev: v1.7.5 + hooks: + - id: docformatter - repo: https://github.com/crate-ci/typos rev: v1.20.9 hooks: