X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/bc7e5c949fa14da0a0174354a83567303bafb648..a69bda3b9bde208d5489eb2e37fc982b6bc1d8df:/.pre-commit-hooks.yaml diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index c8a8ff0..a1ff41f 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -1,8 +1,20 @@ -- id: black - name: black - description: 'Black: The uncompromising Python code formatter' - entry: black - language: python - language_version: python3 - require_serial: true - types: [python] +# Note that we recommend using https://github.com/psf/black-pre-commit-mirror instead +# This will work about 2x as fast as using the hooks in this repository +- id: black + name: black + description: "Black: The uncompromising Python code formatter" + entry: black + language: python + minimum_pre_commit_version: 2.9.2 + require_serial: true + types_or: [python, pyi] +- id: black-jupyter + name: black-jupyter + description: + "Black: The uncompromising Python code formatter (with Jupyter Notebook support)" + entry: black + language: python + minimum_pre_commit_version: 2.9.2 + require_serial: true + types_or: [python, pyi, jupyter] + additional_dependencies: [".[jupyter]"]