You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/eng_sys_checks.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -224,12 +224,10 @@ extends:
224
224
225
225
#### Running locally
226
226
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 -- .`
228
229
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`
0 commit comments