pre-commit: Add codespell (#5844)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Lord · committed by GitHub · parents 30da640, 3709c4a · Browse files · 4 files·+13 added−4 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
4 files+13 added−4 removed
- other:+13 added−4 removed
Provenance
- Commit
5559ef4- Tree
1ceb22b- Author
David Lord <davidism@gmail.com>- Committer
GitHub <noreply@github.com>- Parent 1
30da640- Parent 2
3709c4a
4 files changed+13 added−4 removed
modified:src/flask/app.py+2 added-2 removed
273 unmodified lines274 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 )280 281 def get_send_file_max_age(self, filename: str | None) -> int | None:282 """Used by :func:`send_file` to determine the ``max_age`` cache1228 unmodified lines1511 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 linesmodified:src/flask/sessions.py+1 added-1 removed
105 unmodified lines106 "key was set. Set the secret_key on the "107 "application to something unique and secret."108 )109 110- __setitem__ = __delitem__ = clear = pop = popitem = update = setdefault = _fail # noqa: B950110+ __setitem__ = __delitem__ = clear = pop = popitem = update = setdefault = _fail111 del _fail112 113 114 class SessionInterface:285 unmodified linesmodified:.pre-commit-config.yaml+7 added-1 removed
123455678910111213141516171819204 unmodified linesrepos: - repo: https://github.com/astral-sh/ruff-pre-commit rev: 45ef068da5f21267bb2a7ec4a623092959f09ce5 # frozen: v0.14.14 hooks: - id: ruff - id: ruff-check - id: ruff-format - repo: https://github.com/astral-sh/uv-pre-commit rev: 8afdb18d56d3bd3edea0c4ddde96965d6894f5f3 # frozen: 0.9.26 hooks: - id: uv-lock - repo: https://github.com/codespell-project/codespell rev: 63c8f8312b7559622c0d82815639671ae42132ac # frozen v2.4.1 hooks: - id: codespell additional_dependencies: - tomli - repo: https://github.com/pre-commit/pre-commit-hooks rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0 hooks: - id: check-merge-conflict4 unmodified linesmodified:pyproject.toml+3 added
164 unmodified lines165 [tool.ruff.lint.isort]166 force-single-line = true167 order-by-type = false168 169+[tool.codespell]170+ignore-words-list = "te"171+172 [tool.tox]173 env_list = [174 "py3.14", "py3.14t",175 "py3.13", "py3.12", "py3.11", "py3.10", "py3.9",104 unmodified lines