Skip to content
Myr

Bump flake8-pie from 0.5.0 to 0.15.0 (#1879)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* Bump flake8-pie from 0.5.0 to 0.15.0 Bumps [flake8-pie](https://github.com/sbdchd/flake8-pie) from 0.5.0 to 0.15.0. - [Release notes](https://github.com/sbdchd/flake8-pie/releases) - [Commits](https://github.com/sbdchd/flake8-pie/commits) --- updated-dependencies: - dependency-name: flake8-pie dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Don't use PIE on 3.6 * Adhere or ignore new rules Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tom Christie <tom@tomchristie.com> Co-authored-by: Florimond Manca <florimond.manca@protonmail.com>

authored by dependabot[bot] · committed by GitHub · parent c59be19 · Browse files · 6 files+13 added−15 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

6 files+13 added−15 removed

  • other:+13 added−15 removed

6 files+13 added−15 removed

modified:httpx/_transports/asgi.py+1 added-1 removed
148 unmodified lines
149 response_complete.set()150151 try:152 await self.app(scope, receive, send)153 except Exception:153 except Exception: # noqa: PIE-786154 if self.raise_app_exceptions or not response_complete.is_set():155 raise156157 assert response_complete.is_set()
6 unmodified lines
modified:httpx/_transports/default.py+1 added-1 removed
58 unmodified lines
59@contextlib.contextmanager60def map_httpcore_exceptions() -> typing.Iterator[None]:61 try:62 yield63 except Exception as exc:63 except Exception as exc: # noqa: PIE-78664 mapped_exc = None6566 for from_exc, to_exc in HTTPCORE_EXC_MAP.items():67 if not isinstance(exc, from_exc):
224 unmodified lines
modified:httpx/_client.py+8 added-10 removed
77 unmodified lines
78 Note that user code shouldn't need to use the `USE_CLIENT_DEFAULT` constant,79 but it is used internally when a parameter is not included.80 """8182 pass # pragma: nocover828483USE_CLIENT_DEFAULT = UseClientDefault()848586logger = get_logger(__name__)
322 unmodified lines
409 to create the queryparams used for the outgoing request.410 """411 if params or self.params:412 merged_queryparams = QueryParams(self.params)415 merged_queryparams = merged_queryparams.merge(params)416 return merged_queryparams413 return merged_queryparams.merge(params)414 return params415416 def _build_auth(self, auth: AuthTypes) -> typing.Optional[Auth]:417 if auth is None:
565 unmodified lines
983 self.cookies.extract_cookies(response)984985 status = f"{response.status_code} {response.reason_phrase}"986 response_line = f"{response.http_version} {status}"990 logger.debug(f'HTTP Request: {request.method} {request.url} "{response_line}"')987 logger.debug(988 'HTTP Request: %s %s "%s"', request.method, request.url, response_line989 )990991 return response992993 def get(
484 unmodified lines
1478 headers=headers,1479 cookies=cookies,1480 timeout=timeout,1481 )1483 response = await self.send(1484 request, auth=auth, follow_redirects=follow_redirects1485 )1486 return response1482 return await self.send(request, auth=auth, follow_redirects=follow_redirects)14831484 @asynccontextmanager1485 async def stream(1486 self,
189 unmodified lines
1676 self.cookies.extract_cookies(response)16771678 status = f"{response.status_code} {response.reason_phrase}"1679 response_line = f"{response.http_version} {status}"1684 logger.debug(f'HTTP Request: {request.method} {request.url} "{response_line}"')1680 logger.debug(1681 'HTTP Request: %s %s "%s"', request.method, request.url, response_line1682 )16831684 return response16851686 async def get(
283 unmodified lines
modified:httpx/_utils.py+1 added-1 removed
18 unmodified lines
192021_HTML5_FORM_ENCODING_REPLACEMENTS = {'"': "%22", "\\": "\\\\"}22_HTML5_FORM_ENCODING_REPLACEMENTS.update(23 {chr(c): "%{:02X}".format(c) for c in range(0x00, 0x1F + 1) if c != 0x1B}23 {chr(c): "%{:02X}".format(c) for c in range(0x1F + 1) if c != 0x1B}24)25_HTML5_FORM_ENCODING_RE = re.compile(26 r"|".join([re.escape(c) for c in _HTML5_FORM_ENCODING_REPLACEMENTS.keys()])27)
481 unmodified lines
modified:requirements.txt+1 added-1 removed
20 unmodified lines
21coverage==6.0.222cryptography==3.4.823flake8==3.9.224flake8-bugbear==21.4.325flake8-pie==0.5.025flake8-pie==0.15.0; python_version>='3.7'26isort==5.9.327mypy==0.91028types-certifi==0.1.429pytest==6.2.4
6 unmodified lines
modified:setup.cfg+1 added-1 removed
1[flake8]2ignore = W503, E203, B3052ignore = W503, E203, B305, PIE8013max-line-length = 12045[mypy]6disallow_untyped_defs = True
22 unmodified lines