File tree Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,10 @@ lint: \
24
24
yapf
25
25
26
26
.PHONY : fix-lint
27
- fix-lint :
28
- # Move imports to a single line so that autoflake can handle them.
29
- # See https://github.com/myint/autoflake/issues/8.
30
- # Then later we put them back.
31
- isort --force-single-line --recursive --apply
32
- $(MAKE ) autoflake
33
- $(MAKE ) fix-yapf
34
- isort --recursive --apply
27
+ fix-lint : \
28
+ autoflake \
29
+ fix-yapf \
30
+ fix-isort
35
31
36
32
.PHONY : docs
37
33
docs :
Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ flake8-commas==2.0.0 # Require silicon valley commas
14
14
flake8-quotes==3.2.0 # Require single quotes
15
15
flake8==3.8.3 # Lint
16
16
freezegun==0.3.15
17
- isort==4.3.21 # Lint imports
17
+ isort==5.4.2 # Lint imports
18
18
mypy==0.782 # Type checking
19
19
pip_check_reqs==2.1.1
20
20
pydocstyle==5.1.0 # Lint docstrings
21
21
pyenchant==3.1.1 # Bindings for a spellchecking sytem
22
22
pygithub==1.53
23
- pylint==2.5.3 # Lint
23
+ pylint==2.6.0 # Lint
24
24
pyroma==2.6 # Packaging best practices checker
25
25
pytest-cov==2.10.1 # Measure code coverage
26
26
pytest==6.0.1 # Test runners
Original file line number Diff line number Diff line change @@ -36,7 +36,11 @@ flake8:
36
36
37
37
.PHONY : isort
38
38
isort :
39
- isort --recursive --check-only
39
+ isort --check-only .
40
+
41
+ .PHONY : fix-isort
42
+ fix-isort :
43
+ isort .
40
44
41
45
.PHONY : pip-extra-reqs
42
46
pip-extra-reqs :
Original file line number Diff line number Diff line change @@ -338,8 +338,8 @@ def decorated() -> None:
338
338
339
339
try :
340
340
decorated ()
341
- except FunctionTimedOut :
342
- raise TargetProcessingTimeout
341
+ except FunctionTimedOut as exc :
342
+ raise TargetProcessingTimeout from exc
343
343
344
344
def list_targets (self ) -> List [str ]:
345
345
"""
You can’t perform that action at this time.
0 commit comments