Fix Regex in Configuration of Black Formatter (#2159)

This commit is contained in:
Bibo-Joshi 2020-10-23 14:46:56 +02:00 committed by GitHub
parent 02cd7b642f
commit 83791d34e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'