Skip to content

Commit 91669aa

Browse files
committed
cleanup travis & lints
1 parent eb66c21 commit 91669aa

File tree

6 files changed

+12
-13
lines changed

6 files changed

+12
-13
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ sudo: false
22

33
language: python
44
python:
5-
- "2.7"
6-
- "2.6"
7-
- "3.4"
8-
- "pypy"
5+
- "3.6"
6+
- "3.7"
7+
- "3.8"
8+
- "pypy3"
99
install:
1010
- pip install -r dev-requirements.txt
1111
- pip install .
1212
script:
13-
- make lint
13+
- flake8
1414
- py.test
1515
- make doc
1616

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,E731,W503 txeffect/
3-
41
build-dist:
52
rm -rf dist
63
python setup.py sdist bdist_wheel

setup.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@
33
# 3. If at all possible, it is good practice to do this. If you cannot, you
44
# will need to generate wheels for each Python version that you support.
55
universal=1
6+
7+
[flake8]
8+
max-line-length = 100
9+
ignore = E131,E731,W503

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
'License :: OSI Approved :: MIT License',
1414
'Programming Language :: Python :: 2',
1515
'Programming Language :: Python :: 3',
16-
],
16+
],
1717
packages=['txeffect'],
1818
install_requires=['effect', 'twisted'],
19-
)
19+
)

txeffect/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from functools import partial
1717

1818
from twisted.internet.defer import Deferred
19-
from twisted.python.failure import Failure
2019
from twisted.internet.task import deferLater
2120

2221
from effect import (

txeffect/test_txeffect.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from __future__ import absolute_import
22

33
from functools import partial
4-
import sys
54

65
from testtools import TestCase
76
from testtools.matchers import MatchesListwise, Equals
@@ -110,7 +109,7 @@ def test_perform_failure(self):
110109
self.assertEqual(str(f.value), 'oh dear')
111110
self.assertRegex(
112111
f.getTraceback().splitlines()[-3],
113-
'^\s+File ".*?test_txeffect.py", line \d+, in test_perform_failure$')
112+
r'^\s+File ".*?test_txeffect.py", line \d+, in test_perform_failure$')
114113

115114

116115
class DeferredPerformerTests(TestCase):

0 commit comments

Comments
 (0)