Skip to content

Commit 8bbd2cc

Browse files
committed
clean up lint, and also encode flake8 configuration properly
1 parent 70851a4 commit 8bbd2cc

File tree

12 files changed

+6
-19
lines changed

12 files changed

+6
-19
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ install:
1111
- pip install -r dev-requirements.txt
1212
- pip install sphinx sphinx_rtd_theme
1313
script:
14-
- make lint
14+
- flake8
1515
- py.test
1616
- make doc
1717

Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
lint:
2-
flake8 --ignore=E131,E301,E302,E731,W503,E701,E704,E722 --max-line-length=100 effect/
3-
41
build-dist:
52
rm -rf dist
63
python setup.py sdist bdist_wheel

effect/_base.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# -*- test-case-name: effect.test_base -*-
22
from __future__ import print_function, absolute_import
33

4-
import sys
54
from functools import partial
65

76
import attr
@@ -183,4 +182,3 @@ def raise_(exception):
183182
``raise_(exc)`` is the same as ``raise exc``.
184183
"""
185184
raise exception
186-

effect/_sync.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
Tools for dealing with Effects synchronously.
55
"""
66

7-
import sys
8-
97
from ._base import perform
108
from ._utils import wraps
119

effect/_test_utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Another sad little utility module."""
22

3-
import sys
43
import traceback
54

65
import attr
@@ -30,7 +29,7 @@ def match(self, other):
3029
return Mismatch('{} is not a {}'.format(other, expected_type))
3130
if other.args != self.expected.args:
3231
return Mismatch('{} has different arguments: {}.'.format(
33-
other.args, self.expected.args))
32+
other.args, self.expected.args))
3433

3534

3635
@attr.s

effect/do.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
from __future__ import print_function
99

10-
import sys
1110
import types
1211

1312
from . import Effect, Func

effect/test_base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from __future__ import print_function, absolute_import
22

3-
import sys
43
import traceback
54

65
from testtools import TestCase

effect/test_do.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import sys
22
from functools import partial
33

4-
from py.test import raises as raises
5-
from py.test import mark
4+
from py.test import raises
65

76
from . import (
87
ComposedDispatcher, Constant, Effect, Error, TypeDispatcher,

effect/testing.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from contextlib import contextmanager
1010
from functools import partial
1111
from operator import attrgetter
12-
import sys
1312

1413
import attr
1514

effect/threads.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import sys
2-
31
from ._intents import FirstError
42
from ._sync import sync_perform, sync_performer
53

0 commit comments

Comments
 (0)