Skip to content

Commit

Permalink
Fix new linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
di committed Aug 11, 2017
1 parent d513c1a commit fa2d4be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions vladiate/main.py
Expand Up @@ -76,8 +76,8 @@ def _is_package(path):
Is the given path a Python package?
"""
return (
os.path.isdir(path)
and os.path.exists(os.path.join(path, '__init__.py'))
os.path.isdir(path) and
os.path.exists(os.path.join(path, '__init__.py'))
)


Expand Down
2 changes: 1 addition & 1 deletion vladiate/vlad.py
Expand Up @@ -40,7 +40,7 @@ def _log_validator_failures(self):
self.logger.error(
" {} failed {} time(s) ({:.1%}) on field: '{}'".format(
validator.__class__.__name__, validator.fail_count,
validator.fail_count/self.line_count, field_name))
validator.fail_count / self.line_count, field_name))
invalid = list(validator.bad)
shown = ["'{}'".format(field) for field in invalid[:99]]
hidden = ["'{}'".format(field) for field in invalid[99:]]
Expand Down

0 comments on commit fa2d4be

Please sign in to comment.