black/docs
Yilei "Dolee" Yang 55db05519e
Fix a crash when # fmt: on is used on a different block level than # fmt: off (#3281)
Previously _Black_ produces invalid code because the `# fmt: on` is used on a different block level.

While _Black_ requires `# fmt: off` and `# fmt: on` to be used at the same block level, incorrect usage shouldn't cause crashes.

The formatting behavior this PR introduces is, the code below the initial `# fmt: off` block level will be turned off for formatting, when `# fmt: on` is used on a different level or there is no `# fmt: on`. This also matches the current behavior when `# fmt: off` is used at the top-level without a matching `# fmt: on`, it turns off formatting for everything below `# fmt: off`.

- Fixes #2567
- Fixes #3184
- Fixes #2985
- Fixes #2882
- Fixes #2232
- Fixes #2140
- Fixes #1817
- Fixes #569
2022-09-23 20:37:22 -07:00
..
_static Switch to Furo (#2793) 2022-01-21 15:00:13 -08:00
compatible_configs Update pylint config docs (#2931) 2022-03-16 10:00:30 -07:00
contributing Fix a crash when # fmt: on is used on a different block level than # fmt: off (#3281) 2022-09-23 20:37:22 -07:00
guides Convert index.rst and license.rst to markdown (#2852) 2022-03-30 13:43:46 -07:00
integrations Support version specifiers in GH action (#3265) 2022-09-22 20:23:35 -07:00
the_black_code_style Make context manager examples in future style docs consistent (#3274) 2022-09-22 20:19:31 -07:00
usage_and_configuration Prepare docs for release 22.8.0 (#3248) 2022-08-31 18:39:54 -04:00
authors.md Fix and test docs on Windows (#2262) 2021-05-26 19:04:10 -07:00
change_log.md Fix and test docs on Windows (#2262) 2021-05-26 19:04:10 -07:00
conf.py docs: adds ExitStack alternative to future_style.md (#3247) 2022-08-31 21:25:13 -07:00
faq.md Improve & update release process to reflect recent changes (#3242) 2022-08-31 14:46:48 -07:00
getting_started.md Quote black[jupyter] and black[d] in installation docs (#3006) 2022-04-11 19:25:46 -04:00
index.md Convert index.rst and license.rst to markdown (#2852) 2022-03-30 13:43:46 -07:00
license.md Convert index.rst and license.rst to markdown (#2852) 2022-03-30 13:43:46 -07:00
make.bat add sphinx docs skeleton (#71) 2018-03-23 14:27:04 -07:00
Makefile Add EOF and trailing whitespace fixer to pre-commit config (#2330) 2021-06-13 10:22:46 -07:00
requirements.txt Bump furo from 2022.6.21 to 2022.9.15 in /docs (#3277) 2022-09-19 19:35:46 -04:00