-
Notifications
You must be signed in to change notification settings - Fork 124
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
Flake8 linting of core modules (rtree/index.py
and rtree/core.py
, ignoring E501)
#136
Conversation
…) and ignore F821 (undefined name error) for conditional naming of `xrange` and `basestring` for Py2 case
Add the linter to the CI testing? |
This would be fine, except that if you were using Python >= 3 the linting command produces two undefined name errors in
These two errors are a result of the conditional re-naming of https://github.com/Toblerity/rtree/blob/master/rtree/index.py#L14 This is perfectly fine functionally, but obviously it does generate the F821 errors if using Python >= 3. It should not generate those errors if using Py2. To make the linting step work for both Py2 and Py3 you could obviously wrap the original command in an appropriate conditional shell statement |
That's yuck. We can probably ditch the Python 2 support anyway. Please make another PR that tosses that. |
You would not want to exclude F821 entirely because it is useful to catch this generally. |
OK, no problem. |
I rebased this branch against the Py2 branch, and updated the CI scripts to include a step to |
It may be better to create a separate step inside the CI scripts for Flake8 linting - ATM it is a substep inside the |
eee20f2
to
31a75bb
Compare
Flake8 linting of core modules (
rtree/index.py
andrtree/core.py
, ignoring E501)