Commit 1d1abc4
committed
Allow using tox to reformat the working copy
By default, tox should check that the code is correctly formatted
CI-style. However it can be useful to use it to *fix* the code as
well. By using `--diff` as an overridable default,
tox -eblack --
becomes an easy way to reformat the working copy. Technically it's not
that much shorter than `ruff format`, but if the previous command was
`tox -eblack` (to check formatting) then it becomes a smaller change,
and I don't have to remember the ruff invocation.1 parent 5595b2b commit 1d1abc4
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments