Skip to content
Myr

update ruff hook and noqa

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

authored by David Lord · committed by David Lord · parent 709f83f · Browse files · 3 files+4 added−4 removed
This commit

State

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

Trailers

  • co-authored-by: Christian Clauss <cclauss@me.com>

Diff stats

3 files+4 added−4 removed

  • other:+4 added−4 removed

3 files+4 added−4 removed

modified:src/flask/app.py+2 added-2 removed
273 unmodified lines
274 self.add_url_rule(275 f"{self.static_url_path}/<path:filename>",276 endpoint="static",277 host=static_host,278 view_func=lambda **kw: self_ref().send_static_file(**kw), # type: ignore # noqa: B950278 view_func=lambda **kw: self_ref().send_static_file(**kw), # type: ignore279 )280281 def get_send_file_max_age(self, filename: str | None) -> int | None:282 """Used by :func:`send_file` to determine the ``max_age`` cache
1228 unmodified lines
1511 response = self.full_dispatch_request()1512 except Exception as e:1513 error = e1514 response = self.handle_exception(e)1515 except: # noqa: B0011515 except:1516 error = sys.exc_info()[1]1517 raise1518 return response(environ, start_response)1519 finally:
17 unmodified lines
modified:src/flask/sessions.py+1 added-1 removed
105 unmodified lines
106 "key was set. Set the secret_key on the "107 "application to something unique and secret."108 )109110 __setitem__ = __delitem__ = clear = pop = popitem = update = setdefault = _fail # noqa: B950110 __setitem__ = __delitem__ = clear = pop = popitem = update = setdefault = _fail111 del _fail112113114class SessionInterface:
285 unmodified lines
modified:.pre-commit-config.yaml+1 added-1 removed