From 2bf21182324a830bc28d75dfc135ced8fd9f6a3b Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Fri, 19 Dec 2025 12:06:17 +0200 Subject: [PATCH] Add crate-ci/typos to pre-commit; fix typos --- .pre-commit-config.yaml | 5 +++++ CHANGELOG.md | 10 +++++----- tests/test_dj_database_url.py | 4 ++-- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b0457eb..9d70628 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,3 +14,8 @@ repos: - id: ruff-format args: - --quiet + + - repo: https://github.com/crate-ci/typos + rev: 2d0ce569feab1f8752f1dde43cc2f2aa53236e06 # frozen: v1.40.0 + hooks: + - id: typos diff --git a/CHANGELOG.md b/CHANGELOG.md index a21c0a5..8dde7c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,8 +4,8 @@ * Drop dependency on `typing_extensions`. ## v3.0.0 (2025-05-18) -> Bumping to version 3; changes to code do break some API compatability. -* Implement a new decorator registry pattern to impement checks on database connection string. +> Bumping to version 3; changes to code do break some API compatibility. +* Implement a new decorator registry pattern to implement checks on database connection string. * You can now support and implement your own database strings by extending the @register functionality. * Update supported python versions and django versions. @@ -18,7 +18,7 @@ ## v2.2.0 (2024-05-28) * Add disable_server_side_cursors parameter * Enhance Query String Parsing for Server-Side Binding in Django 4.2 with psycopg 3.1.8+ -* Update django 5.0 python compatability by @mattseymour in #239 +* Update django 5.0 python compatibility by @mattseymour in #239 * Improved internals * Improved documentation @@ -50,7 +50,7 @@ _Notes_: while this does not alter the underlying application code, we are bumpi * Option for connection health checks parameter. * Update supported version python 3.11. -* Code changes, various improvments. +* Code changes, various improvements. * Add project links to setup.py ## v1.0.0 (2022-06-18) @@ -58,7 +58,7 @@ _Notes_: while this does not alter the underlying application code, we are bumpi Initial release of code now dj-database-urls is part of jazzband. * Add support for cockroachdb. -* Add support for the offical MSSQL connector. +* Add support for the official MSSQL connector. * Update License to be compatible with Jazzband. * Remove support for Python < 3.5 including Python 2.7 * Update source code to Black format. diff --git a/tests/test_dj_database_url.py b/tests/test_dj_database_url.py index 7ab1398..093083e 100644 --- a/tests/test_dj_database_url.py +++ b/tests/test_dj_database_url.py @@ -680,9 +680,9 @@ class DatabaseTestSuite(unittest.TestCase): def test_options_int_values(self) -> None: """Ensure that options with integer values are parsed correctly.""" url = dj_database_url.parse( - "mysql://user:pw@127.0.0.1:15036/db?connect_timout=3" + "mysql://user:pw@127.0.0.1:15036/db?connect_timeout=3" ) - assert url["OPTIONS"] == {'connect_timout': 3} + assert url["OPTIONS"] == {'connect_timeout': 3} @mock.patch.dict( os.environ,