The Wayback Machine - https://web.archive.org/web/20210605230132/https://github.com/topics/formatter
Skip to content
#

formatter

Here are 1,067 public repositories matching this topic...

black
mrdeveloperdude
mrdeveloperdude commented May 2, 2021

Summary & why

Currently when Black encounters a SyntaxError while parsing during its AST safety check, it tries older versions of Python to see if it will parse then under its grammar (i.e. the syntax - which is an oversimplification but generally words). In other words, if you have a file that is valid Python 2.7 code and are running on Python 3.8, Black will first try will try Python 3.8

silvestrst
silvestrst commented Apr 12, 2021

Describe the bug

Nightly --file-lines feature description has creeped into the stable rustfmt --help. It is a minor thing but can be misleading. For example, the following description makes it seem like this is a valid option:

-h, --help [=TOPIC] Show this message or help about a specific topic:
                        `config` or `file-lines`

To Reproduce

rus

Improve this page

Add a description, image, and links to the formatter topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the formatter topic, visit your repo's landing page and select "manage topics."

Learn more