Skip to content

Commit

Permalink
Introduce Black - formatting tool.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiPashkin committed Sep 13, 2020
1 parent 9365364 commit 58dd5bd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[tool.black]
line-length = 79
8 changes: 8 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ deps =
pdbpp
sphinx>=3,<4
dunamai < 2
black

[testenv:write_version]
skip_install = true
Expand All @@ -60,3 +61,10 @@ whitelist_externals = make
commands = make html
deps =
{[testenv:dev]deps}

[testenv:black]
skip_install = true
commands =
black {posargs} {toxinidir}/src/py {toxinidir}/scripts {toxinidir}/setup.py
deps =
{[testenv:dev]deps}

0 comments on commit 58dd5bd

Please sign in to comment.