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

Pick a formatting standard and apply it to the entire repo #5

Open
sconklin opened this issue Oct 20, 2021 · 1 comment
Open

Pick a formatting standard and apply it to the entire repo #5

sconklin opened this issue Oct 20, 2021 · 1 comment

Comments

@sconklin
Copy link
Collaborator

Code formatting is inconsistent. Apply a code formatter. If there's a recommended gnuradio formatting, use that.

@dkozel
Copy link
Contributor

dkozel commented Oct 20, 2021

GNU Radio's guidance for Python formatting is a recommendation but there is no formal formatter being run currently.
https://github.com/gnuradio/greps/blob/master/grep-0001-coding-guidelines.md#python-specific-guidelines

I suggest running autopep8 with the default mode (whitespace only), committing that, and then running it with increasing levels of aggressive to see what automatic code improvements it produces.
https://pypi.org/project/autopep8/

pylint is a good tool as well, but is best guidance for manual code improvements.

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

No branches or pull requests

2 participants