-
Notifications
You must be signed in to change notification settings - Fork 10
Fix broken CI test, apply new lint rules #15
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
Open
Kroisse
wants to merge
16
commits into
geofront-auth:master
Choose a base branch
from
Kroisse:fix-lint
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+44
−53
Open
Changes from 3 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
d672877
Pin test dependencies
Kroisse a50df2b
Fix lint errors
Kroisse 2122772
Don't need to run flake8 twice
Kroisse 2f1c3f8
Handle KeyboardInterrupt as normal exit
Kroisse 608d400
Drop support for Python 3.3, PyPy 5.3 or below
Kroisse 3bd2c99
Add support for Python up to 3.7 and PyPy 7.1
Kroisse c198aae
Jump to Xenial
Kroisse 59abb85
Shorten the build matrix
Kroisse 7eca69d
Retain available Python versions
Kroisse 2dc001a
Upgrade to xcode9.4
Kroisse 80a112f
Use xcode10.2
Kroisse ef4f1c8
Fix macOS test to install zlib explicitly
Kroisse 00127a6
Just use builtin pyenv and tox
Kroisse 0d9b0f0
Install sqlite3 and make pyenv verbose
Kroisse 37e7ff4
Locate the path to sqlite3
Kroisse cefa862
Try to trust Travis
Kroisse File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
If I remember correctly, it was intended to catch
KeyboardInterrupt
as well. It's better catchBaseException
here IMO.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.
Catching
BaseException
is still harmful becauseBaseException
includes non-error exceptions likeStopIteration
orGeneratorExit
. I think it is better to catchException
andKeyboardInterrupt
explicitly.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.
I think it's not the case here, because the only thing this
except:
clause does is just logging and reraising. What's your opinion?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.
In my opinion, it's much better to handle
KeyboardInterrupt
separately instead treating it as an error, since the situation whenKeyboardInterrupt
has been raised represents the obvious intention to abort this execution, not an unexpected failure.