From 5ac9d324d7ce7d121f1918a2a73cf62f72e62c45 Mon Sep 17 00:00:00 2001 From: mulhern Date: Tue, 11 Aug 2026 12:44:42 -0400 Subject: [PATCH] Add two Makefile targets for typos Signed-off-by: mulhern --- Makefile | 8 ++++++++ _typos.toml | 2 ++ src/dbus_python_client_gen/_invokers.py | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 _typos.toml diff --git a/Makefile b/Makefile index 2fa2dbd..598e6ff 100644 --- a/Makefile +++ b/Makefile @@ -39,3 +39,11 @@ yamllint: .PHONY: package package: (umask 0022; python -m build; python -m twine check --strict ./dist/*) + +.PHONY: check-typos +check-typos: + typos + +.PHONY: fix-typos +fix-typos: + typos -w diff --git a/_typos.toml b/_typos.toml new file mode 100644 index 0000000..a8284dc --- /dev/null +++ b/_typos.toml @@ -0,0 +1,2 @@ +[files] +extend-exclude = ["_introspect.py"] diff --git a/src/dbus_python_client_gen/_invokers.py b/src/dbus_python_client_gen/_invokers.py index 796962e..c2534c2 100644 --- a/src/dbus_python_client_gen/_invokers.py +++ b/src/dbus_python_client_gen/_invokers.py @@ -48,7 +48,7 @@ def prop_builder( # noqa: PLR0915 :param str interface_name: the interface to which these properties belong :param properties: iterable of interface specifications for each property :type properties: iterable of xml.element.ElementTree.Element - :param int defaul_timeout: the D-Bus timeout, -1 is the libdbus default ~25s + :param int default_timeout: the D-Bus timeout, -1 is the libdbus default ~25s :raises DPClientGenerationError: """