Skip to content

Commit

Permalink
fix(lint): flake8 linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
h2non committed Dec 1, 2016
1 parent 796358c commit e4b565b
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ install:
- pip install -r requirements-dev.txt

script:
- make lint
- make test

after_success:
Expand Down
1 change: 0 additions & 1 deletion History.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ History

- First version (still beta)


0.1.0-rc.1 (2016-11-27)
-----------------------

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ lint:
@echo "$(OK_COLOR)==> Linting code ...$(NO_COLOR)"
@flake8 .

test: clean
test: clean lint
@echo "$(OK_COLOR)==> Runnings tests ...$(NO_COLOR)"
@py.test -s -v --capture sys --cov pook --cov-report term-missing

Expand Down
4 changes: 2 additions & 2 deletions pook/matchers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def match_regexp(self, re, value):
if not isregex(re):
return False

if isregex_expr(expr):
expr = strip_regex(expr)
if isregex_expr(re):
re = strip_regex(re)

try:
return bool(re.compile(re).match(value))
Expand Down
1 change: 0 additions & 1 deletion pook/matchers/body.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from ..types import isregex
from .base import BaseMatcher
from .compare import compare


class BodyMatcher(BaseMatcher):
Expand Down

0 comments on commit e4b565b

Please sign in to comment.