Fix black --help output for --python-cell-magics option to be reproducible (#3516)

This commit is contained in:
Edouard Choinière 2023-01-24 08:43:24 -05:00 committed by GitHub
parent d950f15987
commit 196b1f349e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -69,6 +69,8 @@
<!-- Changes to Black's terminal output and error messages -->
- Calling `black --help` multiple times will return the same help contents each time
(#3516)
- Verbose logging now shows the values of `pyproject.toml` configuration variables
(#3392)
- Fix false symlink detection messages in verbose output due to using an incorrect

View File

@ -244,7 +244,7 @@ def validate_regex(
multiple=True,
help=(
"When processing Jupyter Notebooks, add the given magic to the list"
f" of known python-magics ({', '.join(PYTHON_CELL_MAGICS)})."
f" of known python-magics ({', '.join(sorted(PYTHON_CELL_MAGICS))})."
" Useful for formatting cells with custom python magics."
),
default=[],