File tree Expand file tree Collapse file tree 6 files changed +12
-13
lines changed
Expand file tree Collapse file tree 6 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,15 @@ sudo: false
22
33language : python
44python :
5- - " 2.7 "
6- - " 2.6 "
7- - " 3.4 "
8- - " pypy "
5+ - " 3.6 "
6+ - " 3.7 "
7+ - " 3.8 "
8+ - " pypy3 "
99install :
1010 - pip install -r dev-requirements.txt
1111 - pip install .
1212script :
13- - make lint
13+ - flake8
1414 - py.test
1515 - make doc
1616
Original file line number Diff line number Diff line change 1- lint :
2- flake8 --ignore=E131,E731,W503 txeffect/
3-
41build-dist :
52 rm -rf dist
63 python setup.py sdist bdist_wheel
Original file line number Diff line number Diff line change 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.
55universal =1
6+
7+ [flake8]
8+ max-line-length = 100
9+ ignore = E131,E731,W503
Original file line number Diff line number Diff line change 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+ )
Original file line number Diff line number Diff line change 1616from functools import partial
1717
1818from twisted .internet .defer import Deferred
19- from twisted .python .failure import Failure
2019from twisted .internet .task import deferLater
2120
2221from effect import (
Original file line number Diff line number Diff line change 11from __future__ import absolute_import
22
33from functools import partial
4- import sys
54
65from testtools import TestCase
76from 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
116115class DeferredPerformerTests (TestCase ):
You can’t perform that action at this time.
0 commit comments