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
When you're done making changes, check that your changes pass flake8
I believe there are some latent warnings when running flake8 using the latest main branch.
$ flake8 xradar tests | wc -l
514
E501
A majority of warnings are E501
$ flake8 xradar tests | grep 'E501 line too long' | wc -l
497
E203
$ flake8 xradar tests | grep 'E203 line too long'
xradar/io/backends/common.py:84:71: E203 whitespace before ':'
xradar/io/backends/common.py:85:53: E203 whitespace before ':'
xradar/io/backends/furuno.py:507:30: E203 whitespace before ':'
xradar/io/backends/hpl.py:222:16: E203 whitespace before ':'
xradar/io/backends/iris.py:2597:36: E203 whitespace before ':'
xradar/io/backends/iris.py:2942:30: E203 whitespace before ':'
xradar/io/backends/iris.py:3411:33: E203 whitespace before ':'
xradar/io/backends/metek.py:183:38: E203 whitespace before ':'
xradar/io/backends/nexrad_level2.py:193:30: E203 whitespace before ':'
xradar/io/backends/nexrad_level2.py:304:38: E203 whitespace before ':'
xradar/io/backends/nexrad_level2.py:322:48: E203 whitespace before ':'
xradar/io/backends/nexrad_level2.py:329:41: E203 whitespace before ':'
xradar/io/backends/nexrad_level2.py:346:33: E203 whitespace before ':'
xradar/io/backends/rainbow.py:244:33: E203 whitespace before ':'
xradar/io/backends/rainbow.py:250:30: E203 whitespace before ':'
xradar/io/backends/rainbow.py:295:37: E203 whitespace before ':'
E402
tests/io/test_iris.py:295:1: E402 module level import not at top of file
There are obviously a couple paths forward but I leave this to the maintainers to prescribe their preferred path here. I am happy to hand bomb this (fix the outstanding warnings) if that is of interest.
I'll note that inside tox.ini, (for example), one can add a block like so:
@Steve-Roderick Thanks for digging into this. Your contributions are much appreciated!
For our CI runs (and in pre-commit) we solely rely on black and ruff for linting.
I think we need to remove flake8 from our documentation. Instead we should advertise the usage of pre-commit.
For the usage of tox I have no suggestion how to move forward. For CI we rely on conda-forge to test on different python versions. And to be honest, if we do not test usage of tox we better should not advertise usage. Beside that, tox.ini is not up to date wrt python versions. Maybe we should remove it completely.
@openradar/xradar For the tox part this might need some discussion how to move forward. For the flake8 I'd suggest rmeoving it and advertise black/ruff instead.
Consulting CONTRIBUTING.md I see:
I believe there are some latent warnings when running flake8 using the latest
main
branch.E501
A majority of warnings are E501
E203
E402
There are obviously a couple paths forward but I leave this to the maintainers to prescribe their preferred path here. I am happy to hand bomb this (fix the outstanding warnings) if that is of interest.
I'll note that inside
tox.ini
, (for example), one can add a block like so:^ But I believe adding this block may overwrite inherited flake8 configs.
The text was updated successfully, but these errors were encountered: