Skip to content

Commit

Permalink
Don't limit black to git/
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
EliahKagan committed Sep 19, 2023
1 parent e39ecb7 commit 288cf03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ mypy -p git
For automatic code formatting, run:

```bash
black git
black .
```

Configuration for flake8 is in the `./.flake8` file.
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ignore_outcome = true
[testenv:black]
description = Check style with black
base_python = py39
commands = black --check --diff git
commands = black --check --diff .

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

0 comments on commit 288cf03

Please sign in to comment.