File tree Expand file tree Collapse file tree 7 files changed +17
-21
lines changed
Expand file tree Collapse file tree 7 files changed +17
-21
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11.DEFAULT_GOAL := all
2- isort = isort -rc devtools tests
2+ isort = isort devtools tests
33black = black -S -l 120 --target-version py37 devtools
44
55.PHONY : install
@@ -16,8 +16,8 @@ format:
1616.PHONY : lint
1717lint :
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
2323check-dist :
Original file line number Diff line number Diff 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 ]
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ class SkipPretty(Exception):
3131def 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 :
Original file line number Diff line number Diff 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 ):
Original file line number Diff line number Diff line change 11[tool:pytest]
22testpaths = tests
3- timeout = 10
43filterwarnings = error
54
65[flake8]
@@ -23,8 +22,7 @@ exclude_lines =
2322
2423[isort]
2524line_length =120
26- known_first_party =foxglove
27- known_standard_library =dataclasses
25+ known_first_party =devtools
2826multi_line_output =3
2927include_trailing_comma =True
3028force_grid_wrap =0
Original file line number Diff line number Diff line change 11black == 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
55pycodestyle == 2.6.0
66pyflakes == 2.2.0
77Pygments == 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
1313pytest-toolbox == 0.4
14- twine == 3.1.1
14+ twine == 3.2.0
1515asyncpg # pyup: ignore
1616numpy # pyup: ignore
1717multidict # pyup: ignore
You can’t perform that action at this time.
0 commit comments