codeformatter
Here are 38 public repositories matching this topic...
The motivation for this new option is outlined in #5345, and the option proposed here is a potential solution to that scenario.
Specifically, we need to introduce a new config option named something like doc_comment_code_block_width (but feel free to come up with a better name) that's used to set the width threshold used when rustfmt is reformating code blocks residing within doc comments.
-
Updated
Apr 20, 2022 - Python
-
Updated
Oct 30, 2019 - Python
-
Updated
Aug 24, 2020 - Python
-
Updated
May 23, 2022 - Python
-
Updated
Jun 5, 2022 - Java
Hey guys, I was trying to clean up some code and came upon this super niche edge case.
Here is the minimal reproducible example. Removing one or both ifs, removing the bottom comment or replacing the ruleorder with anything else does not result in the error.
# when using nested if-statements with___
if True:
if True:
ruleorder: ___a_ruleorder_and___
# __-
Updated
Mar 11, 2022 - CMake
The error:
Error: ENOENT: no such file or directory, open 'C:\Git_work\Roku-Sample-App\source\*.brs'
at Object.fs.openSync (fs.js:646:18)
at Object.fs.readFileSync (fs.js:551:33)
at processFile (C:\Users\eg874k\AppData\Roaming\npm\node_modules\@willowtreeapps\wist\src\js\cli-engine.js:64:21)
at executeOnFile (C:\Users\eg874k\AppData\Roaming\npm\node_modules\@willowtreeapp
-
Updated
May 27, 2019 - TypeScript
-
Updated
May 27, 2022 - Mathematica
-
Updated
May 9, 2022 - Python
-
Updated
Oct 2, 2017 - C#
-
Updated
Nov 29, 2021 - Vim script
-
Updated
Apr 9, 2022
-
Updated
Aug 3, 2020 - JavaScript
-
Updated
Sep 27, 2019 - Rust
-
Updated
Oct 7, 2019 - Python
-
Updated
Jul 17, 2020 - Shell
-
Updated
Oct 29, 2021 - OCaml
-
Updated
Oct 25, 2021 - Go
-
Updated
Sep 20, 2021 - Python
Improve this page
Add a description, image, and links to the codeformatter topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the codeformatter topic, visit your repo's landing page and select "manage topics."
Perhaps we should document this issue in the FAQ? Using pre-commit with Black is pretty common (and it's not always instantly clear it passes all of the files to the hook directly bypassing any file discovery the hook may implement). I'd suggest pre-commit's exclude configurations first, and then black's force-exclude.
_Originally posted by @ichard26 in psf/black#3013