Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use black to automatically format the code #185

Open
carinedengler opened this issue Jul 20, 2020 · 1 comment
Open

use black to automatically format the code #185

carinedengler opened this issue Jul 20, 2020 · 1 comment

Comments

@carinedengler
Copy link
Contributor

Is your feature request related to a problem? Please describe.
automatically formatting the code

  • allows the developer to concentrate on the code's content, not its format
  • makes the code easier to maintain
  • makes the code more readable

Describe the solution you'd like
use black to automatically format the code (for example, see francearchives-cubicweb) and integrate a git hook which formats the code automatically on commits

Describe alternatives you've considered
make the code PEP8 conform and integrate linting step (flake8) into Travis CI

@PonteIneptique
Copy link
Member

No issue on my end, only obligation would be 120 line char (I hate the 88 limitation) and 4 spaces (but I think it's generally the default)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants