black.toml
author Gregory Szorc <gregory.szorc@gmail.com>
Mon, 13 Jan 2020 20:09:32 -0800
changeset 44074 806d14efec8d
parent 43386 2247bf3cec76
child 44232 5e84a96d865b
permissions -rw-r--r--
fsmonitor: properly handle str ex.msg ex.msg is always a str, since pywatchman uses str for exception messages. This commit removes a b'' from a string compare to avoid types mismatch and adds a coercion to bytes before stuffing the exception message on our local exception type, which uses bytes for the message elsewhere in this file. Differential Revision: https://phab.mercurial-scm.org/D7855

[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