Skip to content

Commit 7d67f88

Browse files
authored
Fix typos discovered by codespell (#3069)
2 parents bb45f5d + 9aabb57 commit 7d67f88

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
33
rev: fa1ed65ba95bfa7771a71003a9d74402541f5a5c # frozen: v0.14.6
44
hooks:
5-
- id: ruff
5+
- id: ruff-check
66
- id: ruff-format
77
- repo: https://github.com/astral-sh/uv-pre-commit
88
rev: 016d6d8dbc18eb9cc42594297fa8af0c79f6df72 # frozen: 0.9.12
@@ -16,3 +16,11 @@ repos:
1616
- id: fix-byte-order-marker
1717
- id: trailing-whitespace
1818
- id: end-of-file-fixer
19+
- repo: https://github.com/codespell-project/codespell
20+
rev: 63c8f8312b7559622c0d82815639671ae42132ac # frozen: v2.4.1
21+
hooks:
22+
- id: codespell
23+
args:
24+
- --ignore-words-list=fo,te,worl
25+
additional_dependencies:
26+
- tomli

examples/partial/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
This directory contains modules that have code but that are
2-
not excutable. For example routing definitions to play around
2+
not executable. For example routing definitions to play around
33
in the python interactive prompt.

src/werkzeug/routing/map.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class Map:
8080
The ``encoding_errors`` and ``host_matching`` parameters were added.
8181
8282
.. versionchanged:: 0.5
83-
The ``sort_parameters`` and ``sort_key`` paramters were added.
83+
The ``sort_parameters`` and ``sort_key`` parameters were added.
8484
"""
8585

8686
#: A dict of default converters to be used.

tests/test_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ def app(request):
894894

895895

896896
def no_response_headers_app(environ, start_response):
897-
"""A WSGI application which returns a resposne with no headers."""
897+
"""A WSGI application which returns a response with no headers."""
898898
response = Response("Response")
899899
response.headers.clear()
900900
return response(environ, start_response)

tests/test_wrappers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ def test_etag_response():
538538
assert resp.status_code == 304
539539
assert "content-length" not in resp.headers
540540

541-
# make sure date is not overriden
541+
# make sure date is not overridden
542542
response = wrappers.Response("Hello World")
543543
response.date = 1337
544544
d = response.date
@@ -582,7 +582,7 @@ def test_etag_response_412():
582582
# Make sure there is a body still
583583
assert resp.data != b""
584584

585-
# make sure date is not overriden
585+
# make sure date is not overridden
586586
response = wrappers.Response("Hello World")
587587
response.date = 1337
588588
d = response.date

0 commit comments

Comments
 (0)