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

Automatically format the code #218

Closed
2 of 3 tasks
Guts opened this issue Aug 30, 2019 · 0 comments
Closed
2 of 3 tasks

Automatically format the code #218

Guts opened this issue Aug 30, 2019 · 0 comments
Assignees
Labels
code art Qualité du code source wontfix Ne sera pas corrigé
Milestone

Comments

@Guts
Copy link
Contributor

Guts commented Aug 30, 2019

To ensure source code is respecting PEP8 and divine readability, there are two options:

  • indent manually and laboriously
  • use an automatic formatter, and black appears to be the recommended one

So:

  • install black as dev dependency
  • add formatting to the VSC settings
  • automate code formatting for each commit with pre-commit
@Guts Guts added code art Qualité du code source task labels Aug 30, 2019
@Guts Guts added this to the Version 2 milestone Aug 30, 2019
SimonSAMPERE added a commit that referenced this issue Sep 2, 2019
SimonSAMPERE added a commit that referenced this issue Sep 4, 2019
SimonSAMPERE added a commit that referenced this issue Sep 4, 2019
SimonSAMPERE added a commit that referenced this issue Sep 4, 2019
SimonSAMPERE added a commit that referenced this issue Sep 4, 2019
SimonSAMPERE added a commit that referenced this issue Sep 4, 2019
SimonSAMPERE added a commit that referenced this issue Sep 4, 2019
Guts pushed a commit that referenced this issue Sep 11, 2019
* format with black #218
Guts added a commit that referenced this issue Sep 12, 2019
@SimonSAMPERE SimonSAMPERE modified the milestones: Version 2, Not planned Oct 23, 2019
@SimonSAMPERE SimonSAMPERE added the wontfix Ne sera pas corrigé label Oct 25, 2019
@SimonSAMPERE SimonSAMPERE added this to Done - Fait in Roadmap - plugin QGIS Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code art Qualité du code source wontfix Ne sera pas corrigé
Projects
No open projects
Roadmap - plugin QGIS
Delivered (production)
Development

No branches or pull requests

2 participants