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

Fix parsing of multi-options for pycodestyle #112

Merged
merged 2 commits into from Oct 2, 2018

Conversation

maxnordlund
Copy link
Contributor

This correctly parses options of the form "E302,W405", which before this was split into individual characters. This resulted in all errors and/or being considered when ignoring/selecting.

Since specifying just "E" disables all errors, having a list of characters meant that it always encountered an individual "E" and thus disabled all errors.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 76.984% when pulling e1efbe9 on maxnordlund:fix-pycodestyle-ignore into c07a906 on klen:develop.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 76.984% when pulling e308003 on maxnordlund:fix-pycodestyle-ignore into c07a906 on klen:develop.

@maxnordlund
Copy link
Contributor Author

The test failures are due to missing pythons: ERROR: py33: InterpreterNotFound: python3.3. That means some sort of tweaking of the Travis setup is needed to fix it.

@maxnordlund maxnordlund force-pushed the fix-pycodestyle-ignore branch 2 times, most recently from 0870b74 to eea05f4 Compare January 11, 2018 15:41
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 76.984% when pulling 0870b74 on maxnordlund:fix-pycodestyle-ignore into c07a906 on klen:develop.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 76.984% when pulling eea05f4 on maxnordlund:fix-pycodestyle-ignore into c07a906 on klen:develop.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 76.984% when pulling 60410fa on maxnordlund:fix-pycodestyle-ignore into c07a906 on klen:develop.

@coveralls
Copy link

coveralls commented Jan 11, 2018

Coverage Status

Coverage increased (+0.4%) to 77.778% when pulling 15a3d09 on maxnordlund:fix-pycodestyle-ignore into c07a906 on klen:develop.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 77.381% when pulling 5bfe748 on maxnordlund:fix-pycodestyle-ignore into c07a906 on klen:develop.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 77.381% when pulling b2f5be5 on maxnordlund:fix-pycodestyle-ignore into c07a906 on klen:develop.

You can't rely on tox alone to test the various versions of python
because they might not be installed. Instead specify a build matrix by
hand. This also allows for a cleaner after_script for coveralls.
@maxnordlund
Copy link
Contributor Author

This is blocked by #114 to make the tests green. Merging using rebase removes that commit, otherwise this needs to be rebased.

@coveralls
Copy link

coveralls commented Jan 11, 2018

Coverage Status

Coverage remained the same at 77.381% when pulling 4c19d4c on maxnordlund:fix-pycodestyle-ignore into c07a906 on klen:develop.

@maxnordlund maxnordlund mentioned this pull request Jan 11, 2018
@diraol
Copy link
Contributor

diraol commented Jan 26, 2018

Do we really need to check against python 3.3? Is there any OS in which python 3.3 is the default version?

@maxnordlund
Copy link
Contributor Author

I'm not sure, but I didn't want to change that since it's currently in the testing matrix. But that should be in another PR, right?

@maxnordlund
Copy link
Contributor Author

Ping @diraol how do we get this merged?

This correctly parses options of the form "E302,W405", which before this
was split into individual characters. This resulted in all errors and/or
being considered when ignoring/selecting.

Since specifying just "E" disables all errors, having a list of
characters meant that it always encountered an individual "E" and thus
disabled all errors.
@diraol
Copy link
Contributor

diraol commented Mar 1, 2018

@maxnordlund It is on the hands of @klen as far as I know.

@JulienGrv
Copy link

Any update?

@klen klen merged commit 4c19d4c into klen:develop Oct 2, 2018
@klen
Copy link
Owner

klen commented Oct 2, 2018

@maxnordlund Thank you for the PR.

@maxnordlund maxnordlund deleted the fix-pycodestyle-ignore branch October 2, 2018 15:33
@maxnordlund
Copy link
Contributor Author

Np

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

Successfully merging this pull request may close these issues.

None yet

5 participants