Skip to content

Commit

Permalink
Merge pull request #3 from vimist/refactor-to-subdir
Browse files Browse the repository at this point in the history
Moved main code base into sub sirectory
  • Loading branch information
vimist committed Feb 16, 2018
2 parents 0867be1 + 859ad4f commit 5f28aa1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions logger_helper.py → logger_helper/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Logger Helper main classes and utility functions."""

import inspect
import functools
import inspect


def get_callable_name(clbl):
Expand Down Expand Up @@ -228,9 +228,9 @@ def mod(self, mod, symbols=None):
None: Nothing is returned, the class is wrapped in place.
"""
for member_name, member in inspect.getmembers(mod):
if ((symbols is not None and member_name not in symbols)
or not inspect.isclass(member)
and not inspect.isfunction(member)):
if ((symbols is not None and member_name not in symbols) or
not inspect.isclass(member) and
not inspect.isfunction(member)):
continue

member = getattr(mod, member_name)
Expand All @@ -253,8 +253,8 @@ def cls(self, cls):

for member_name, member in inspect.getmembers(new_cls):
if not callable(member) or (
member_name.startswith('__')
and member_name.endswith('__')):
member_name.startswith('__') and
member_name.endswith('__')):
continue

wrapped_method = self._wrap_callable(member, True)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
'Topic :: System :: Logging',
'Topic :: System :: Monitoring'
],
py_modules=['logger_helper']
packages=['logger_helper']
)
2 changes: 1 addition & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def lint_module(cxt):
command = 'pylint --reports no {module} setup.py'
ci(cxt, command.format(module=MODULE_NAME))

command = 'flake8 {module} setup.py'
command = 'flake8 --ignore D413 {module} setup.py'
ci(cxt, command.format(module=MODULE_NAME))

@task(build_ci)
Expand Down

0 comments on commit 5f28aa1

Please sign in to comment.