black.toml
author Gregory Szorc <gregory.szorc@gmail.com>
Mon, 04 Nov 2019 20:46:19 -0800
branchstable
changeset 43415 a8454e846736
parent 43386 2247bf3cec76
child 44147 5e84a96d865b
permissions -rw-r--r--
import-checker: open all source files as utf-8 Before, we opened in text mode and used the default encoding to interpret the bytes within. This caused problems interpreting some byte sequences in some files. This commit changes things to always open files as UTF-8, which makes the error go away. test-check-module-imports.t now passes on Python 3.5 and 3.6 with this change. Differential Revision: https://phab.mercurial-scm.org/D7225

[tool.black]
line-length = 80
exclude = '''
build/
| wheelhouse/
| dist/
| packages/
| \.hg/
| \.mypy_cache/
| \.venv/
| mercurial/thirdparty/
| contrib/python-zstandard/
'''
skip-string-normalization = true
quiet = true