Skip to content

Commit b5b3d3b

Browse files
committed
Update for new formatting tools
1 parent 4873320 commit b5b3d3b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.flake8

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ exclude =
77
test_imports.py,
88
hypothesis-python/tests/py2/*,
99
test_lambda_formatting.py
10-
ignore = F811,D1,D205,D209,D213,D400,D401,D999,D202
10+
ignore = F811,D1,D205,D209,D213,D400,D401,D999,D202,W504
1111

1212
# Use flake8-alfred to forbid builtins that require compatibility wrappers.
1313
warn-symbols=

hypothesis-python/tests/django/toystore/test_given_models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def test_foreign_key_primary(self, buf):
151151
)
152152
try:
153153
ConjectureData.for_buffer(buf).draw(strategy)
154-
except HypothesisException as e:
154+
except HypothesisException:
155155
reject()
156156
# Draw again with the same buffer. This will cause a duplicate
157157
# primary key.

hypothesis-python/tests/py3/test_lookup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def test_typevar_type_is_consistent(data, var, expected):
249249
assert isinstance(v1, expected)
250250

251251

252-
def annotated_func(a: int, b: int=2, *, c: int, d: int=4):
252+
def annotated_func(a: int, b: int = 2, *, c: int, d: int = 4):
253253
return a + b + c + d
254254

255255

0 commit comments

Comments
 (0)