[STY] PEP8 style changes and minor logging fixes#253
[STY] PEP8 style changes and minor logging fixes#253josephmje merged 3 commits intoTIGRLab:masterfrom
Conversation
|
|
||
| def get_sessions(self, study): | ||
| logger.debug('Querying xnat server for sessions in study' | ||
| logger.debug('Querying xnat server for sessions in study:{}' |
There was a problem hiding this comment.
If it's not a giant hassle (or a difference in preferred style) could you throw a space after the colons in these messages? I dont know about you but all our old log messages that leave the space out drive me a bit crazy haha
|
Thanks for catching all these issues! |
|
looks good to me, thanks for catching! |
|
Hello @josephmje! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2020-01-02 21:38:10 UTC |
|
will approve after pep8 changes! |
i was going to ask whether we should increase the line length? |
|
Hmm.. I personally dont have any strong preferences either way. But I will say that python's actual line length limit lets me fit two tabs side by side on that lab monitors without missing the end of lines or having to close atom's project pane haha. I can definitely work around that though and will just go with whatever you guys prefer |
|
Agree with @DESm1th on editor usability. For example, for the current pep8 issues I'd be totally cool with just letting it pass since it's just a bracket. Only issue is that this will stay persistent on future updates to the code 😞 |
|
^ All of that sounds incredibly reasonable to me (including letting the bracket pass). |
|
Okkkk Dawn and I had a mini-chat: Use 10% feature on the condition that all auto-code formatters should stick to 80 characters. Dawn and I have been using yapf for our code-formatting which we're mostly happy with. That way any violation of 80 characters is intentional and made with full awareness |
|
Cool! I'm adding some extra configuration to flake8 in my WIP PR. Will keep line length at 80 and add B950. |
No description provided.