Add configuration for python code formatter black
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Thu, 30 May 2019 15:57:52 +0000 (11:57 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 1 Jun 2019 13:18:18 +0000 (09:18 -0400)
commit31976fe2d70a8b6b7f8b31b9e0b3bc004d415575
tree16a2cc2356e49857a6f5dabf1250bfa50d1f3746
parent649934d212dbc58e6d11dbd9eae6bdb931e65522
Add configuration for python code formatter black

Black will look for pyproject.toml automatically.
pyproject.toml is defined by PEP518 [1]

Use skip-string-normalization for now [2].

Exclude results from swig, build directory of the python bindings and
results of python input file (py.in).

Include py.in files.

[1] https://www.python.org/dev/peps/pep-0518/
[2] https://black.readthedocs.io/en/stable/the_black_code_style.html#strings

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Change-Id: I57adffcba9517dea05f10f9571671e75ac1a860f
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1355
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
pyproject.toml [new file with mode: 0644]
This page took 0.02505 seconds and 4 git commands to generate.