Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: fa1ed65ba95bfa7771a71003a9d74402541f5a5c # frozen: v0.14.6
hooks:
- id: ruff
- id: ruff-check
- id: ruff-format
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 016d6d8dbc18eb9cc42594297fa8af0c79f6df72 # frozen: 0.9.12
Expand All @@ -16,3 +16,11 @@ repos:
- id: fix-byte-order-marker
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/codespell-project/codespell
rev: 63c8f8312b7559622c0d82815639671ae42132ac # frozen: v2.4.1
hooks:
- id: codespell
args:
- --ignore-words-list=fo,te,worl
additional_dependencies:
- tomli
2 changes: 1 addition & 1 deletion examples/partial/README
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
This directory contains modules that have code but that are
not excutable. For example routing definitions to play around
not executable. For example routing definitions to play around
in the python interactive prompt.
2 changes: 1 addition & 1 deletion src/werkzeug/routing/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class Map:
The ``encoding_errors`` and ``host_matching`` parameters were added.

.. versionchanged:: 0.5
The ``sort_parameters`` and ``sort_key`` paramters were added.
The ``sort_parameters`` and ``sort_key`` parameters were added.
"""

#: A dict of default converters to be used.
Expand Down
2 changes: 1 addition & 1 deletion tests/test_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ def app(request):


def no_response_headers_app(environ, start_response):
"""A WSGI application which returns a resposne with no headers."""
"""A WSGI application which returns a response with no headers."""
response = Response("Response")
response.headers.clear()
return response(environ, start_response)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ def test_etag_response():
assert resp.status_code == 304
assert "content-length" not in resp.headers

# make sure date is not overriden
# make sure date is not overridden
response = wrappers.Response("Hello World")
response.date = 1337
d = response.date
Expand Down Expand Up @@ -582,7 +582,7 @@ def test_etag_response_412():
# Make sure there is a body still
assert resp.data != b""

# make sure date is not overriden
# make sure date is not overridden
response = wrappers.Response("Hello World")
response.date = 1337
d = response.date
Expand Down