Skip to content

Commit

Permalink
Call black directly (not via flake8)
Browse files Browse the repository at this point in the history
Now that the entire code base uses black this
is practical - the flake8 configuration gave
a convienent way to manage the gradual adoption.

However, right now my flake8-black plugin has
more overhead than it should and slows this down.
peterjc/flake8-black#26
  • Loading branch information
peterjc committed Jul 30, 2020
1 parent 8d9c2d6 commit 9d315d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis-tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ deps =
flake8-comprehensions
flake8-bugbear
flake8-implicit-str-concat
flake8-black
flake8-quotes
black
restructuredtext_lint
doc8
pygments
Expand All @@ -116,6 +116,8 @@ deps =
commands =
# PEP-8 and PEP-257 style checks:
flake8
# Black style check
black --check .
# Now do various checks on our RST files:
# Calling via bash to get it to expand the wildcard for us
bash -c \'rst-lint --level warning *.rst\'
Expand Down

0 comments on commit 9d315d7

Please sign in to comment.