Skip to content

Commit

Permalink
Add isort config
Browse files Browse the repository at this point in the history
  • Loading branch information
nateprewitt committed Mar 23, 2022
1 parent a35e11e commit bd78cb7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions requests/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def resolve_redirects(
cert=None,
proxies=None,
yield_requests=False,
**adapter_kwargs
**adapter_kwargs,
):
"""Receives a Response. Returns a generator of Responses or Requests."""

Expand Down Expand Up @@ -266,7 +266,7 @@ def resolve_redirects(
cert=cert,
proxies=proxies,
allow_redirects=False,
**adapter_kwargs
**adapter_kwargs,
)

extract_cookies_to_jar(self.cookies, prepared_request, resp.raw)
Expand Down
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ requires-dist =
charset_normalizer~=2.0.0
idna>=2.5,<4
urllib3>=1.21.1,<1.27

[isort]
profile = black
honor_noqa = true
7 changes: 4 additions & 3 deletions tests/test_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -936,9 +936,10 @@ def test_invalid_ssl_certificate_files(self, httpbin_secure):

with pytest.raises(IOError) as e:
requests.get(httpbin_secure(), cert=(".", INVALID_PATH))
assert str(
e.value
) == f"Could not find the TLS key file, invalid path: {INVALID_PATH}"
assert (
str(e.value)
== f"Could not find the TLS key file, invalid path: {INVALID_PATH}"
)

@pytest.mark.parametrize(
"env, expected",
Expand Down

0 comments on commit bd78cb7

Please sign in to comment.