Skip to content

Fixes for TravisCI on master#1742

Merged
jdtournier merged 3 commits intomasterfrom
ci_fix_master
Oct 9, 2019
Merged

Fixes for TravisCI on master#1742
jdtournier merged 3 commits intomasterfrom
ci_fix_master

Conversation

@Lestropie
Copy link
Copy Markdown
Member

Merging of this PR will be necessary before other PRs targeting the master branch can pass CI testing. Details in f9d1d54 commit message.

Python3 on TravisCI have introduced new tests with pylint 2.4.0. This change should permit testing on master to pass:
- Use sys.exit() rather than exit().
- Remove some unnecessary comprehensions in dwipreproc.
- Tweak run_pylint script to not print erroneous warnings due to cache directories or empty directories left over from checking out other branches.
- Ignore import-outside-toplevel; given the overhaul of the Python API in #1449 conformance with this recommendation will instead be performed on the dev branch.
Based on online recommendations. Commit follows f9d1d54.
@Lestropie Lestropie requested a review from a team September 26, 2019 02:18
@Lestropie Lestropie self-assigned this Sep 26, 2019
pylint 2.4.0 in Python3 gives a new warning "consider-using-sys-exit". By explicitly disabling this warning, pylint on Python 2 instead complains that this is a bad option value. Furthermore, the preferred exit() call for the signal handler invokes a protected function of the os module. This change removes the sys.exit() disable, and instead disables the protected-member warning.
@Lestropie
Copy link
Copy Markdown
Member Author

This passes CI, and needs a review in order for other PR merges to master to become possible.

@jdtournier jdtournier merged commit e4182a9 into master Oct 9, 2019
@jdtournier jdtournier deleted the ci_fix_master branch October 9, 2019 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants