Skip to content

Commit 288cf03

Browse files
committed
Don't limit black to git/
This changes the documentation in README.md to recommend running "black ." and changes the command to that in tox.ini, so that more paths are covered (in practice, test/ and setup.py).
1 parent e39ecb7 commit 288cf03

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ mypy -p git
159159
For automatic code formatting, run:
160160

161161
```bash
162-
black git
162+
black .
163163
```
164164

165165
Configuration for flake8 is in the `./.flake8` file.

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ignore_outcome = true
2323
[testenv:black]
2424
description = Check style with black
2525
base_python = py39
26-
commands = black --check --diff git
26+
commands = black --check --diff .
2727

2828
# Run "tox -e html" for this. It is deliberately excluded from env_list, as
2929
# unlike the other environments, this one writes outside the .tox/ directory.

0 commit comments

Comments
 (0)