From 84cc49b14b1cb4c395615dbaef78a38c7ab78dde Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Mon, 25 Nov 2019 14:20:59 -0800 Subject: [PATCH] black: don't reformat _leptonica.py --- .pre-commit-config.yaml | 7 ++++--- pyproject.toml | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) 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 )/ '''