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
Is your feature request related to a problem? Please describe.
We can streamline code review if the formatting is done automatically, and stylistic problems (e.g., flake8) are done on the contributor's side. I don't want to sound very nitpicky during code reviews whenever I point out formatting mistakes. So let's automate that part.
Describe the solution you'd like
Add pre-commit hooks, describe how to do this on CONTRIBUTING.md
Add flake8 and black formatting styles on top-level directory
Add black badge on README
The text was updated successfully, but these errors were encountered:
This commit formats the majority of pyswarms code using the
black formatter. This will be our new formatter from this point
forward.
Signed-off-by: Lester James V. Miranda <[email protected]>
This commit adds the .flake8 and pyproject.toml to specify flake8
and black configuration. In addition, we updated the code to reflect
the warnings found in flake8.
Signed-off-by: Lester James V. Miranda <[email protected]>
Is your feature request related to a problem? Please describe.
We can streamline code review if the formatting is done automatically, and stylistic problems (e.g., flake8) are done on the contributor's side. I don't want to sound very nitpicky during code reviews whenever I point out formatting mistakes. So let's automate that part.
Describe the solution you'd like
The text was updated successfully, but these errors were encountered: