-
Notifications
You must be signed in to change notification settings - Fork 70
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
Extended YAML #164
Extended YAML #164
Conversation
Oh ffs pylint. Ok, I'll do what I should have done a while ago, which is fix the version of pylint in |
Agreed. That said, the new checks in 1.7 seem to so far be suggesting reasonable changes anyway, so maybe it would make sense to fix for that upgrade then lock? |
# Conflicts: # dev-requirements.txt
2 similar comments
I don't know why we're getting an import error for py3.5 for |
Side question, but for the purpose of diagnosing pylint issues, is it OK for me to hide information-level ( |
This is flummoxing, I can't seem to reproduce the pylint error locally. What might make sense is to locally disable the check until we can figure it out; if it ever actually fails to import, then the unit tests should catch that. |
Yes feel free to disable the ignore messages |
I can reproduce it, but only with Python 3.5 :/ |
That is weird as all hell. I'll investigate a bit more, then. Doing so, it seems that since Travis is building off of 12.04, which predates 3.5, they install 3.5 in a different way than for the other builds. My guess would be that somehow |
2 similar comments
This reverts commit f73a243.
except ImportError: | ||
yaml = None | ||
# Some versions of ruamel.yaml are named ruamel_yaml, so try that | ||
# too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
da fuck? really? What version is that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anaconda, at least, seems to rename it to avoid a conflict somewhere. Ran into that trying to locally reproduce the pylint failure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well that's a thing.
I think this should cap it off, with 3099d07 and afca981 now following the suggestion made by ruamel.yaml 0.13.0 and marking calls to (Side note: since nosetests is currently warning-free, perhaps at some point we should ratchet up code standards by making it fail on warnings instead of just errors?) |
# that can be easily hidden by Travis' log folding. Moreover, a nonzero | ||
# exit code from this block kills the entire job, meaning that if we can't | ||
# even sensibly get version information, we correctly abort. | ||
- which python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ugly, but yeah can help with debugging
- pylint --py3k instruments/ | ||
- pylint instruments/ | ||
- pylint --py3k instruments | ||
- pylint --disable=I instruments |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good call, should help a lot. I wonder if there's a way to put that in the .pylintrc
file to make it the default. I'm good with this though
except ImportError: | ||
yaml = None | ||
# Some versions of ruamel.yaml are named ruamel_yaml, so try that | ||
# too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well that's a thing.
Third time is the charm? This PR continues the work of #163, targeting develop, and with commits affecting APT devices moved onto another branch. For some reason, though, pylint seems to have gotten significantly more aggressive. I think it's related to the 13 April release, which adds a whole mess of new checks. I'll start a new branch to fix those, with the intent of merging that into this PR to try and fix the new lint issues raised by pylint 1.7.