Skip to content

Commit

Permalink
Set py36 to false in Black defaults
Browse files Browse the repository at this point in the history
As Python2 is still supported then the Python 3.6+ option, py36, must be
set to false in the default configuration as it will:
> will put trailing commas in function signatures and calls also after
> *args and **kwargs.
  • Loading branch information
matthewfeickert committed Oct 18, 2018
1 parent 02e944a commit 4fdee9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.black]
line-length = 88
py36 = true
py36 = false # Python 2 is still supported
skip-string-normalization = true
skip-numeric-underscore-normalization = true # Python 2 is still supported
include = '\.pyi?$'
Expand Down
4 changes: 2 additions & 2 deletions tests/test_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ def test_notebooks(tmpdir):
pm.execute_notebook(
'docs/examples/notebooks/multichannel-coupled-histo.ipynb',
parameters={'validation_datadir': 'validation/data'},
**common_kwargs,
**common_kwargs
)
pm.execute_notebook(
'docs/examples/notebooks/multiBinPois.ipynb',
parameters={'validation_datadir': 'validation/data'},
**common_kwargs,
**common_kwargs
)

nb = pm.read_notebook(str(outputnb))
Expand Down

0 comments on commit 4fdee9a

Please sign in to comment.