Skip to content

Commit

Permalink
Allow reformatting code with tox -e black-format
Browse files Browse the repository at this point in the history
  • Loading branch information
hluk committed Dec 2, 2022
1 parent cd86469 commit 189ed07
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ And run as usual.

## Running test suite

After making changes run `tox -e black-format` to reformat the code.

You can run the test suite with the following command::

$ tox
Expand Down
7 changes: 7 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ deps =
commands =
black --check --diff --line-length=99 resultsdb testing

[testenv:black-format]
skip_install = true
deps =
black
commands =
black --line-length=99 resultsdb testing

[testenv:py39]
docker = resultsdb-postgres
extras =
Expand Down

0 comments on commit 189ed07

Please sign in to comment.