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

Isort flake8 improvements #397

Merged
merged 6 commits into from
Feb 16, 2018
Merged

Isort flake8 improvements #397

merged 6 commits into from
Feb 16, 2018

Conversation

mauritsvanrees
Copy link
Sponsor Member

@mauritsvanrees mauritsvanrees commented Feb 16, 2018

Fixes #389.

My previous PR #396 failed on Travis for the isort and flake8 job. This should fix it.
Locally tox is happy at least. It is a Mac, which might behave slightly differently from Travis when it comes to sorting.

The isort setups on Jenkins and Travis do not agree.
Apparently it is unclear what the correct sort order is for these versions:

  from datetime import date
  from datetime import datetime as dtime

So I replaced it with:

  import datetime as dtime

We don't use simple `import datetime` under its own name,
because one of the functions uses 'datetime' as an argument.
Copy link
Member

@hvelarde hvelarde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mauritsvanrees
Copy link
Sponsor Member Author

Hah! Now the QA job on Travis passes, but the 'real' tests fail. I guess I should have run those too. :-) Let me check.

I thought flake8 complained about this line, but it apparently was a different one.
I wondered about this one.
When you revoke the ('Editor') roles, without comma, you revoke the role E, d, i, t, o, r.
Not what you want. :-)
('Editor',) works.  A list would work too.
@mauritsvanrees
Copy link
Sponsor Member Author

That should do it. Running Jenkins now.

@mauritsvanrees
Copy link
Sponsor Member Author

Okay, all green, including Travis.

@mauritsvanrees mauritsvanrees merged commit c978a7a into master Feb 16, 2018
@mauritsvanrees mauritsvanrees deleted the isort-flake8-improvements branch February 16, 2018 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Travis QA job fails on isort, sometimes
3 participants