Skip to content

Commit a2307e8

Browse files
authored
Merge pull request #27 from hjwp/black
Black
2 parents 1a8b2d8 + 1659d4b commit a2307e8

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed

pytest_icdiff.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616

1717
def pytest_assertrepr_compare(config, op, left, right):
18-
if op != '==':
18+
if op != "==":
1919
return
2020

2121
try:
@@ -48,12 +48,12 @@ def pytest_assertrepr_compare(config, op, left, right):
4848
# no option in icdiff to disable it, so we replace its colorization
4949
# function with a no-op
5050
differ.colorize = lambda string: string
51-
color_off = ''
51+
color_off = ""
5252
else:
53-
color_off = icdiff.color_codes['none']
53+
color_off = icdiff.color_codes["none"]
5454

5555
icdiff_lines = list(differ.make_table(pretty_left, pretty_right))
5656
if len(icdiff_lines) > 50:
57-
icdiff_lines = list(differ.make_table(pretty_left, pretty_right, context=True))
57+
icdiff_lines = list(differ.make_table(pretty_left, pretty_right, context=True))
5858

59-
return ['equals failed'] + [color_off + l for l in icdiff_lines]
59+
return ["equals failed"] + [color_off + l for l in icdiff_lines]

setup.py

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8,39 +8,39 @@
88

99
def read(fname):
1010
file_path = os.path.join(os.path.dirname(__file__), fname)
11-
return codecs.open(file_path, encoding='utf-8').read()
11+
return codecs.open(file_path, encoding="utf-8").read()
1212

1313

1414
setup(
15-
name='pytest-icdiff',
16-
version='0.6',
17-
author='Harry Percival',
18-
author_email='[email protected]',
19-
maintainer='Harry Percival',
20-
maintainer_email='[email protected]',
21-
license='Unlicense',
22-
url='https://github.com/hjwp/pytest-icdiff',
23-
description='use icdiff for better error messages in pytest assertions',
24-
long_description=read('README.rst') + read('HISTORY.rst'),
25-
long_description_content_type='text/x-rst',
26-
py_modules=['pytest_icdiff'],
27-
python_requires='>=3.6',
28-
install_requires=['pytest', 'icdiff', 'pprintpp'],
15+
name="pytest-icdiff",
16+
version="0.6",
17+
author="Harry Percival",
18+
author_email="[email protected]",
19+
maintainer="Harry Percival",
20+
maintainer_email="[email protected]",
21+
license="Unlicense",
22+
url="https://github.com/hjwp/pytest-icdiff",
23+
description="use icdiff for better error messages in pytest assertions",
24+
long_description=read("README.rst") + read("HISTORY.rst"),
25+
long_description_content_type="text/x-rst",
26+
py_modules=["pytest_icdiff"],
27+
python_requires=">=3.6",
28+
install_requires=["pytest", "icdiff", "pprintpp"],
2929
classifiers=[
30-
'Development Status :: 4 - Beta',
31-
'Framework :: Pytest',
32-
'Intended Audience :: Developers',
33-
'Topic :: Software Development :: Testing',
34-
'Programming Language :: Python',
35-
'Programming Language :: Python :: 3.6',
36-
'Programming Language :: Python :: 3.7',
37-
'Programming Language :: Python :: 3.8',
38-
'Operating System :: OS Independent',
39-
'License :: Public Domain',
30+
"Development Status :: 4 - Beta",
31+
"Framework :: Pytest",
32+
"Intended Audience :: Developers",
33+
"Topic :: Software Development :: Testing",
34+
"Programming Language :: Python",
35+
"Programming Language :: Python :: 3.6",
36+
"Programming Language :: Python :: 3.7",
37+
"Programming Language :: Python :: 3.8",
38+
"Operating System :: OS Independent",
39+
"License :: Public Domain",
4040
],
4141
entry_points={
42-
'pytest11': [
43-
'icdiff = pytest_icdiff',
42+
"pytest11": [
43+
"icdiff = pytest_icdiff",
4444
],
4545
},
4646
)

0 commit comments

Comments
 (0)