diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b268b628..2ccebb79 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,7 @@ repos: -- repo: https://github.com/ambv/black + - repo: https://github.com/psf/black rev: stable hooks: - - id: black - language_version: python3.7 + - id: black + language_version: python3.7 + exclude: ^src/ocrmypdf/lib/_leptonica.py diff --git a/pyproject.toml b/pyproject.toml index 4d61be1a..a28f55c0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,5 +28,6 @@ exclude = ''' | docs | misc | \.egg-info + | src/ocrmypdf/lib/_leptonica.py )/ '''