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
Although we depend on the black formatter in the [dev] requirements, it is not currently consistently used, and there are unconventional formatting (wrt PEP 8) widespread in the code base.
The contributors should be required to format their code with the black formatter we specify in the [dev] requirement before pushing to the repository. (Development guide #185)
black can be executed from the command line if the user has the [dev] environment activated.
If you are using a modern IDE, formatting can also be done by selecting the black installed in their virtual environment as the formatter backend (VS Code: ^/⌘ ⇧ P and type 'format document with...').
The text was updated successfully, but these errors were encountered:
Another issue to also think about is enforcing consistent Markdown documents with a linter, e.g. this one that is available as both a GitHub Action and an editor plugin.
Problem
Although we depend on the
black
formatter in the[dev]
requirements, it is not currently consistently used, and there are unconventional formatting (wrt PEP 8) widespread in the code base.Proposed solution
black
formatter we specify in the[dev]
requirement before pushing to the repository. (Development guide #185)Example
black
can be executed from the command line if the user has the[dev]
environment activated.If you are using a modern IDE, formatting can also be done by selecting the
black
installed in their virtual environment as the formatter backend (VS Code:^/⌘ ⇧ P
and type 'format document with...').The text was updated successfully, but these errors were encountered: