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

Tox and other changes #28

Merged
merged 5 commits into from Oct 27, 2015

Conversation

c1728p9
Copy link
Collaborator

@c1728p9 c1728p9 commented Oct 26, 2015

I finally got around to some of the low priority changes I was planning on doing a while back. The biggest purpose of this is to make testing easier. Tox is able to test several versions of python using virtual environments along with pylint for error and python 3 compatibility checking. Let me know what you think. There is no rush to merge this, I just made a pull request so I wouldn't forget about it. Also if you want to see any more versions of python tested, let me know and I'll add them to tox.

Add tox and configure it to test python 2.7 and 3.4 along with both
32 and 64 bit variants.  To test using tox these versions of python
need to be installed in at the correct location.  Also configure tox
to run show_hids.py as a test and to run pylint to check for errors.
Fix a typo in core.py, along with suppressing false-positives detected
by pylint.
Add the file example-requirements.txt for modules required by examples
but not required by the pywinusb library.
Make the following changes to ensure consistent behavior between
python 2 and python 3:
-Don't allow old importing syntax
-Explicitly use the new style print function
-Use integer division explicitly
-Add python 3 compatibility check to tox using pylint
Trim trailing whitespace from the project.  To confirm that nothing
important changed in the process astor was used.  The only changes
that effected the generated code were to docstrings, which will not
cause problems.  These changes are:
-hid\__init__.py line 5: trailing whitespace removed from docstring
-core.py line 47: trailing whitespace removed from docstring
-hid_pnp_mixin.py line 52: trailing whitespace removed from docstring
rene-aguirre added a commit that referenced this pull request Oct 27, 2015
@rene-aguirre rene-aguirre merged commit d0745bc into rene-aguirre:master Oct 27, 2015
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.

None yet

2 participants