-
Notifications
You must be signed in to change notification settings - Fork 179
Code improvements and linting #640
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
Conversation
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.
Looks like a good bit of linting.
@theotherjimmy I will fix that problem |
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.
Thanks for the PR. Other than the comment I left, everything else looks great!
mbed/mbed.py
Outdated
@@ -1278,6 +1279,7 @@ def get_cache(self, url): | |||
def set_cache(self, url): | |||
up = urlparse(formaturl(url, 'https')) | |||
if self.cache and up and up.netloc and os.path.isdir(self.path): | |||
cpath = 'none' |
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.
This is not right. cpath = os.path.join(...
should be moved before the try:
instead
Fixed @screamerbg mentioned problem and added auto formatting |
@OPpuolitaival LGTM! Waiting for CI to finish. |
@OPpuolitaival Could you please rebase? |
@screamerbg rebased |
@OPpuolitaival Can you remove the autoformatting? That's way too intrusive and I don't agree with some of the autoformatting rules. |
@OPpuolitaival I mean whatever was introduced in 85829a2 |
@screamerbg autoformatting removed. I did ask from Jimmy and he was okay with those and therefore added it in here |
@OPpuolitaival Thanks. Current change set is 15 changed lines vs 580 with autoformatter. |
@screamerbg Sure, that is the idea of autoformatting that it does big job automatically |
Small fixing like: