From 83791d34e7af46981bdb7ca6446015a9ec70aee0 Mon Sep 17 00:00:00 2001 From: Bibo-Joshi Date: Fri, 23 Oct 2020 14:46:56 +0200 Subject: [PATCH] Fix Regex in Configuration of Black Formatter (#2159) --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4de04cce4..956c60623 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,9 +3,9 @@ line-length = 99 target-version = ['py36'] skip-string-normalization = true -# We need to force-exclude the negated include pattern so +# We need to force-exclude the negated include pattern # so that pre-commit run --all-files does the correct thing # see https://github.com/psf/black/issues/1778 -force-exclude = '^(?!(telegram|examples|tests)/).*\.py$' +force-exclude = '^(?!/(telegram|examples|tests)/).*\.py$' include = '(telegram|examples|tests)/.*\.py$' exclude = 'telegram/vendor' \ No newline at end of file