Skip to content

Commit

Permalink
Merge pull request #34 from pytest-dev/linting
Browse files Browse the repository at this point in the history
Add linting checks (rst and flakes)
  • Loading branch information
nicoddemus committed Feb 23, 2016
2 parents bea94a0 + 33c9859 commit b5a616a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Thanks to `@fogo`_, mocker.spy can now prey upon staticmethods and classmethods.
-----

* Two new auxiliary methods, ``spy`` and ``stub``. See ``README`` for usage.
(Thanks `@fogo`_ for complete PR!)
(Thanks `@fogo`_ for complete PR!)


0.5.0
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pytest-mock
===========

This plugin installs a ``mocker`` fixture which is a thin-wrapper around the patching API
provided by the excellent `mock <http://pypi.python.org/pypi/mock>`_ package,
provided by the excellent `mock package <http://pypi.python.org/pypi/mock>`_,
but with the benefit of not having to worry about undoing patches at the end
of a test:

Expand Down
14 changes: 13 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
# note that tox expects interpreters to be found at C:\PythonXY,
# with XY being python version ("27" or "34") for instance
envlist = py{26,27,34,35}-pytest{27,28}
envlist = py{26,27,34,35}-pytest{27,28},linting

[testenv]
passenv = USER USERNAME
Expand All @@ -10,3 +10,15 @@ deps =
pytest27: pytest==2.7.3
pytest28: pytest==2.8.7
commands = coverage run --append --source=pytest_mock.py -m pytest test_pytest_mock.py


[testenv:linting]
basepython = python3.5
skip_install=True
deps =
pytest-flakes
restructuredtext_lint
pygments
commands =
py.test --flakes pytest_mock.py test_pytest_mock.py -m flakes
rst-lint CHANGELOG.rst README.rst

0 comments on commit b5a616a

Please sign in to comment.