Skip to content

Commit 94f42bb

Browse files
authored
doc: Update instructions for running black in eng_sys_check.md (Azure#31674)
1 parent cb21518 commit 94f42bb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

doc/eng_sys_checks.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,10 @@ extends:
224224

225225
#### Running locally
226226

227-
To run locally first install `black` from pip if you do not have it already (the pipeline uses version 22.3.0). Currently, we use the `-l 120` option to allow lines up to 120 characters (consistent with our `pylint` check).
227+
1. Go to package root directory.
228+
2. Execute command: `tox run -e black -c ../../../eng/tox/tox.ini -- .`
228229

229-
```bash
230-
python -m pip install black==22.3.0
231-
python -m black -l 120 <path/to/service_directory>
232-
```
230+
**Tip**: You can provide any arguments that `black` accepts after the `--`. Example: `tox run -e black -c ../../../eng/tox/tox.ini -- path/to/file.py`
233231

234232
### Change log verification
235233

0 commit comments

Comments
 (0)