#16 Add a tox.ini to test against all versions of Python
Merged 7 years ago by ralph. Opened 7 years ago by jcline.
jcline/waiverdb add-tox  into  master

file modified
+5
@@ -35,3 +35,8 @@ 

  You can run this test suite with the following command::

  

      $ py.test tests/

+ 

+ To test against all supported versions of Python, you can use tox::

+ 

+     $ sudo dnf install python3-tox

+     $ tox

file added
+24
@@ -0,0 +1,24 @@ 

+ [tox]

+ envlist = lint,py27,py34,py35,py36

+ # If the user is missing an interpreter, don't fail

+ skip_missing_interpreters = True

+ 

+ [testenv]

+ deps =

+     -rrequirements.txt

Does this have an extra "r" on purpose?

+ whitelist_externals =

+     find

+ commands =

+     find -name *.pyc -delete

+     py.test tests/

+ 

+ [testenv:lint]

+ deps =

+     flake8 > 3.0

+ commands =

+     python -m flake8 {posargs}

+ 

+ [flake8]

+ show-source = True

+ max-line-length = 100

+ exclude = .git,.tox,dist,*egg

Tox is a nice way to quickly run tests against multiple Python interpreters.

I'm not sure what style guide this project wants to enforce (I really like PEP8), but I added a lint section to the tox.ini so it's easy to automatically enforce/check.

rebased

7 years ago

jcline, thanks. It seems like i have to clean up the code to make tox happy, :-)

Pull-Request has been merged by ralph

7 years ago

Does this have an extra "r" on purpose?

Metadata