-
-
Notifications
You must be signed in to change notification settings - Fork 919
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
BF (codename "happy travis"): trying to address lints etc to make Travis green again #702
Merged
Byron
merged 14 commits into
gitpython-developers:master
from
yarikoptic:bf-happy-travis
Dec 11, 2017
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
6ee08fc
RF: primarily flake8 lints + minor RF to reduce duplication in PATHEXT
yarikoptic 086af07
BF(PY26): {} -> {0}, i.e. explicit index for .format()
yarikoptic e1aea3a
BF: crazy tests ppl pass an object for status... uff -- catch TypeErr…
yarikoptic c352dba
RF: last of flake8 fails - avoid using temp variable in a test
yarikoptic 42e89cc
RF(+BF?): refactor hooks creation in a test, and may be make it compa…
yarikoptic d723148
ENH: add appveyor recipe to establish rdesktop login into the test box
yarikoptic dcfe242
ENH: also report where on sh, and echo msg when entering on_finish
yarikoptic 0a67f25
RF: no "need" for custom shebang on windows since just does not work
yarikoptic 6253625
Disable (but keep for future uses commented out) hook into appveyor s…
yarikoptic 91b9bc4
RF(TST): skip all tests dealing with hooks on windows
yarikoptic b4459ca
BF(WIN): use where instead of which while looking for git
yarikoptic cc34077
RF: use HIDE_WINDOWS_KNOWN_ERRORS instead of is_win to skip hooks tests
yarikoptic 4d851a6
BF(WIN): where could report multiple hits, so choose first
yarikoptic f48d087
to keep travis busy - adding myself to AUTHORS
yarikoptic 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 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 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 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 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 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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,7 +139,7 @@ def repo_creator(self): | |
try: | ||
try: | ||
return func(self, rw_repo) | ||
except: | ||
except: # noqa E722 | ||
log.info("Keeping repo after failure: %s", repo_dir) | ||
repo_dir = None | ||
raise | ||
|
@@ -227,7 +227,7 @@ def with_rw_and_rw_remote_repo(working_tree_ref): | |
Same as with_rw_repo, but also provides a writable remote repository from which the | ||
rw_repo has been forked as well as a handle for a git-daemon that may be started to | ||
run the remote_repo. | ||
The remote repository was cloned as bare repository from the rorepo, whereas | ||
The remote repository was cloned as bare repository from the ro repo, whereas | ||
the rw repo has a working tree and was cloned from the remote repository. | ||
|
||
remote_repo has two remotes: origin and daemon_origin. One uses a local url, | ||
|
@@ -296,7 +296,7 @@ def remote_repo_creator(self): | |
with cwd(rw_repo.working_dir): | ||
try: | ||
return func(self, rw_repo, rw_daemon_repo) | ||
except: | ||
except: # noqa E722 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about |
||
log.info("Keeping repos after failure: \n rw_repo_dir: %s \n rw_daemon_repo_dir: %s", | ||
rw_repo_dir, rw_daemon_repo_dir) | ||
rw_repo_dir = rw_daemon_repo_dir = None | ||
|
This file contains 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 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 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 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 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 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.
How about
except Exception:
like elsewhere?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.
We could. But at this out-most level of handling execution, I thought to remain as "greedy" as possible. May be someone (among used dependencies) still manages to raise non-Exception "exceptions" up the chain from somewhere/somehow -- so I thought to remain catching them as well. In the other places it was more "specific" to not expect some complete weird stuff being thrown up. But if you insist, we could have it Exception here as well