Skip to content

Commit

Permalink
Make use of styling and linting tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Crouzet committed Jan 20, 2017
1 parent a9db720 commit dd8f8d6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
9 changes: 8 additions & 1 deletion Makefile
Expand Up @@ -29,10 +29,17 @@ doc:
env:
virtualenv env

lint:
@-pylint -r n gorilla

style:
@-pycodestyle gorilla.py
@-pydocstyle gorilla.py

test:
@python -m unittest discover -s tests -v

upload:
@twine upload dist/*

.PHONY: clean coverage dist doc env test upload
.PHONY: clean coverage dist doc env lint style test upload
13 changes: 3 additions & 10 deletions gorilla.py
Expand Up @@ -5,14 +5,10 @@
# |_____|
#

"""
gorilla
~~~~~~~
Convenient approach to monkey patching.
"""Convenient approach to monkey patching.
:copyright: Copyright 2014-2017 by Christopher Crouzet.
:license: MIT, see LICENSE for details.
:copyright: Copyright 2014-2017 by Christopher Crouzet.
:license: MIT, see LICENSE for details.
"""

import collections
Expand Down Expand Up @@ -81,7 +77,6 @@ def default_filter(name, obj):


class DecoratorData(object):

"""Decorator data.
Attributes
Expand All @@ -104,7 +99,6 @@ def __init__(self):


class Settings(object):

"""Define the patching behaviour.
Attributes
Expand Down Expand Up @@ -160,7 +154,6 @@ def _update(self, **kwargs):


class Patch(object):

"""Describe all the information required to apply a patch.
Attributes
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Expand Up @@ -50,7 +50,8 @@ def _find_version(*file_paths):
'Topic :: Utilities',
],
extras_require={
'dev': ['coverage', 'sphinx>=1.3', 'tox'],
'dev': ['coverage', 'pycodestyle', 'pydocstyle', 'pylint',
'sphinx>=1.3', 'tox'],
'docs': ['sphinx>=1.3'],
},
packages=[],
Expand Down

0 comments on commit dd8f8d6

Please sign in to comment.