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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy