
Fixes #2742. This PR adds the ability to configure additional python cell magics. This will allow formatting cells in Jupyter Notebooks that are using custom (python) magics.
18 lines
388 B
TOML
18 lines
388 B
TOML
[tool.black]
|
|
verbose = 1
|
|
--check = "no"
|
|
diff = "y"
|
|
color = true
|
|
line-length = 79
|
|
target-version = ["py36", "py37", "py38"]
|
|
exclude='\.pyi?$'
|
|
include='\.py?$'
|
|
python-cell-magics = ["custom1", "custom2"]
|
|
|
|
[v1.0.0-syntax]
|
|
# This shouldn't break Black.
|
|
contributors = [
|
|
"Foo Bar <foo@example.com>",
|
|
{ name = "Baz Qux", email = "bazqux@example.com", url = "https://example.com/bazqux" }
|
|
]
|