forked from orbit-oss/flask
update ruff hook and noqa
co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
parent
709f83f6a3
commit
3709c4a9a8
3 changed files with 4 additions and 4 deletions
|
|
@ -2,7 +2,7 @@ repos:
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: 45ef068da5f21267bb2a7ec4a623092959f09ce5 # frozen: v0.14.14
|
rev: 45ef068da5f21267bb2a7ec4a623092959f09ce5 # frozen: v0.14.14
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff-check
|
||||||
- id: ruff-format
|
- id: ruff-format
|
||||||
- repo: https://github.com/astral-sh/uv-pre-commit
|
- repo: https://github.com/astral-sh/uv-pre-commit
|
||||||
rev: 8afdb18d56d3bd3edea0c4ddde96965d6894f5f3 # frozen: 0.9.26
|
rev: 8afdb18d56d3bd3edea0c4ddde96965d6894f5f3 # frozen: 0.9.26
|
||||||
|
|
|
||||||
|
|
@ -275,7 +275,7 @@ class Flask(App):
|
||||||
f"{self.static_url_path}/<path:filename>",
|
f"{self.static_url_path}/<path:filename>",
|
||||||
endpoint="static",
|
endpoint="static",
|
||||||
host=static_host,
|
host=static_host,
|
||||||
view_func=lambda **kw: self_ref().send_static_file(**kw), # type: ignore # noqa: B950
|
view_func=lambda **kw: self_ref().send_static_file(**kw), # type: ignore
|
||||||
)
|
)
|
||||||
|
|
||||||
def get_send_file_max_age(self, filename: str | None) -> int | None:
|
def get_send_file_max_age(self, filename: str | None) -> int | None:
|
||||||
|
|
@ -1512,7 +1512,7 @@ class Flask(App):
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
error = e
|
error = e
|
||||||
response = self.handle_exception(e)
|
response = self.handle_exception(e)
|
||||||
except: # noqa: B001
|
except:
|
||||||
error = sys.exc_info()[1]
|
error = sys.exc_info()[1]
|
||||||
raise
|
raise
|
||||||
return response(environ, start_response)
|
return response(environ, start_response)
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,7 @@ class NullSession(SecureCookieSession):
|
||||||
"application to something unique and secret."
|
"application to something unique and secret."
|
||||||
)
|
)
|
||||||
|
|
||||||
__setitem__ = __delitem__ = clear = pop = popitem = update = setdefault = _fail # noqa: B950
|
__setitem__ = __delitem__ = clear = pop = popitem = update = setdefault = _fail
|
||||||
del _fail
|
del _fail
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue