diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c4c442c..bd4eaff 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -141,7 +141,10 @@ repos: - "colorama" - repo: "https://github.com/psf/black" - rev: "22.3.0" + # The `refs/tags/:refs/tags/` is needed for black's + # `required-version` option to work. See + # https://github.com/psf/black/issues/2493#issuecomment-1081987650 + rev: "refs/tags/22.3.0:refs/tags/22.3.0" hooks: # Format Python code with black. - id: "black"