diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2f13ac4c73fa0..caafce376771d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,6 +15,18 @@ default_stages: [ ci: autofix_prs: false repos: +- repo: local + hooks: + # NOTE: we make `black` a local hook because if it's installed from + # PyPI (rather than from source) then it'll run twice as fast thanks to mypyc + - id: black + name: black + description: "Black: The uncompromising Python code formatter" + entry: black + language: python + require_serial: true + types_or: [python, pyi] + additional_dependencies: [black==23.1.0] - repo: https://github.com/charliermarsh/ruff-pre-commit rev: v0.0.244 hooks: @@ -116,16 +128,6 @@ repos: - id: sphinx-lint - repo: local hooks: - # NOTE: we make `black` a local hook because if it's installed from - # PyPI (rather than from source) then it'll run twice as fast thanks to mypyc - - id: black - name: black - description: "Black: The uncompromising Python code formatter" - entry: black - language: python - require_serial: true - types_or: [python, pyi] - additional_dependencies: [black==23.1.0] - id: pyright # note: assumes python env is setup and activated name: pyright