Skip to content

Commit 843c7b6

Browse files
authored
uprev test deps and correct import orders (#65)
1 parent 0e3610d commit 843c7b6

File tree

7 files changed

+17
-21
lines changed

7 files changed

+17
-21
lines changed

.pyup.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.DEFAULT_GOAL := all
2-
isort = isort -rc devtools tests
2+
isort = isort devtools tests
33
black = black -S -l 120 --target-version py37 devtools
44

55
.PHONY: install
@@ -16,8 +16,8 @@ format:
1616
.PHONY: lint
1717
lint:
1818
flake8 devtools/ tests/
19-
$(isort) --check-only -df
20-
$(black) --check
19+
$(isort) --check-only --df
20+
$(black) --check --diff
2121

2222
.PHONY: check-dist
2323
check-dist:

devtools/debug.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ def _parse_code(
257257
All we're trying to do here is build an AST of the function call statement. However numerous ugly interfaces,
258258
lack on introspection support and changes between python versions make this extremely hard.
259259
"""
260-
from textwrap import dedent
261260
import ast
261+
from textwrap import dedent
262262

263263
def get_code(_last_line: int) -> str:
264264
lines = file_lines[first_line - 1 : _last_line]

devtools/prettier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ class SkipPretty(Exception):
3131
def get_pygments():
3232
try:
3333
import pygments
34-
from pygments.lexers import PythonLexer
3534
from pygments.formatters import Terminal256Formatter
35+
from pygments.lexers import PythonLexer
3636
except ImportError: # pragma: no cover
3737
return None, None, None
3838
else:

devtools/utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,9 @@ def activate_win_color() -> bool: # pragma: no cover
4141
4242
Code snippet source: https://bugs.python.org/msg291732
4343
"""
44-
import os
45-
import msvcrt
4644
import ctypes
47-
45+
import msvcrt
46+
import os
4847
from ctypes import wintypes
4948

5049
def _check_bool(result, func, args):

setup.cfg

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[tool:pytest]
22
testpaths = tests
3-
timeout = 10
43
filterwarnings = error
54

65
[flake8]
@@ -23,8 +22,7 @@ exclude_lines =
2322

2423
[isort]
2524
line_length=120
26-
known_first_party=foxglove
27-
known_standard_library=dataclasses
25+
known_first_party=devtools
2826
multi_line_output=3
2927
include_trailing_comma=True
3028
force_grid_wrap=0

tests/requirements.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
black==19.10b0
2-
coverage==4.5.3
3-
flake8==3.7.9
4-
isort==4.3.17
2+
coverage==5.2.1
3+
flake8==3.8.3
4+
isort==5.2.1
55
pycodestyle==2.6.0
66
pyflakes==2.2.0
77
Pygments==2.6.1
8-
pydantic==1.5.1
9-
pytest==5.4.2
10-
pytest-cov==2.8.1
11-
pytest-mock==3.1.0
12-
pytest-sugar==0.9.3
8+
pydantic==1.6.1
9+
pytest==5.4.3
10+
pytest-cov==2.10.0
11+
pytest-mock==3.2.0
12+
pytest-sugar==0.9.4
1313
pytest-toolbox==0.4
14-
twine==3.1.1
14+
twine==3.2.0
1515
asyncpg # pyup: ignore
1616
numpy # pyup: ignore
1717
multidict # pyup: ignore

0 commit comments

Comments
 (0)