From 7fe118efbbe1741c0795c73ed01f95f74fee7eab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 5 Feb 2026 08:01:25 +0100 Subject: [PATCH] chore: fix typos --- .pre-commit-config.yaml | 7 +++++++ NEWS.rst | 2 +- examples/async.py | 4 ++-- examples/debugging.py | 2 +- examples/filesystem_test.py | 32 ++++++++++++++++---------------- examples/listfilesystem.py | 2 +- examples/savesmspercontact.py | 2 +- examples/service_numbers.py | 2 +- examples/vcs.py | 2 +- examples/worker.py | 2 +- gammu/__init__.py | 2 +- gammu/data.py | 1 - gammu/src/convertors/backup.c | 2 +- gammu/src/convertors/base.c | 2 +- gammu/src/convertors/bitmap.c | 2 +- gammu/src/convertors/calendar.c | 2 +- gammu/src/convertors/call.c | 2 +- gammu/src/convertors/diverts.c | 2 +- gammu/src/convertors/file.c | 2 +- gammu/src/convertors/memory.c | 2 +- gammu/src/convertors/misc.c | 2 +- gammu/src/convertors/ringtone.c | 10 +++++----- gammu/src/convertors/sms.c | 2 +- gammu/src/convertors/string.c | 2 +- gammu/src/convertors/time.c | 2 +- gammu/src/convertors/todo.c | 2 +- gammu/src/convertors/wap.c | 2 +- gammu/src/data.c | 2 +- gammu/src/errors.c | 2 +- gammu/src/gammu.c | 18 +++++++++--------- gammu/src/misc.c | 2 +- gammu/src/smsd.c | 2 +- gammu/worker.py | 4 ++-- include/convertors.h | 2 +- include/data.h | 2 +- include/errors.h | 2 +- include/misc.h | 4 ++-- pyproject.toml | 6 ++++++ setup.py | 2 +- 39 files changed, 79 insertions(+), 67 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2b11b7658..5aeb6159a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,3 +31,10 @@ repos: hooks: - id: check-hooks-apply - id: check-useless-excludes + - repo: https://github.com/crate-ci/typos + rev: v1.43.0 + hooks: + - id: typos + args: [] + require_serial: true + pass_filenames: false diff --git a/NEWS.rst b/NEWS.rst index d972a9bf3..79b6432a6 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -17,7 +17,7 @@ 3.2.3 ===== -* Fixed uninitalized memory usage in DeleteSMS. +* Fixed uninitialized memory usage in DeleteSMS. 3.2.2 ===== diff --git a/examples/async.py b/examples/async.py index c7d5fa914..5c4ff9a96 100644 --- a/examples/async.py +++ b/examples/async.py @@ -19,7 +19,7 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. """ -python-gammu - Phone communication libary +python-gammu - Phone communication library Gammu asynchronous wrapper example with asyncio. This allows your application to care only about handling received data and not about phone communication details. @@ -68,7 +68,7 @@ async def get_network_info(worker): async def get_info(worker): - print("Phone infomation:") + print("Phone information:") manufacturer = await worker.get_manufacturer_async() print("{:<15}: {}".format("Manufacturer", manufacturer)) model = await worker.get_model_async() diff --git a/examples/debugging.py b/examples/debugging.py index 460553045..95a78ca64 100755 --- a/examples/debugging.py +++ b/examples/debugging.py @@ -45,7 +45,7 @@ def main(): model = state_machine.GetModel() imei = state_machine.GetIMEI() firmware = state_machine.GetFirmware() - print("Phone infomation:") + print("Phone information:") print("{:<15}: {}".format("Manufacturer", manufacturer)) print("{:<15}: {} ({})".format("Model", model[0], model[1])) print("{:<15}: {}".format("IMEI", imei)) diff --git a/examples/filesystem_test.py b/examples/filesystem_test.py index 125cbf5ef..d4164ae56 100755 --- a/examples/filesystem_test.py +++ b/examples/filesystem_test.py @@ -22,12 +22,12 @@ """ This file should provide me with a test frame for the filesystem functions. It can't be run automatically, but you should be able -to decide, wheather the output looks sensible +to decide, whether the output looks sensible BEWARE - the test WILL TOUCH AND WRITE FILESYSTEM!! -I asume you call the script from the directory were it lays and -have the grafic there and you have write permission there and that +I assume you call the script from the directory were it lays and +have the graphic there and you have write permission there and that there is a file called cgi.jpg to be used as test file READY: @@ -100,7 +100,7 @@ def main(): state_machine.Init() # Check GetFileSystemStatus - print("Expection: Info about filesystem usage") + print("Expectation: Info about filesystem usage") try: fs_info = state_machine.GetFileSystemStatus() fs_info["Total"] = fs_info["Free"] + fs_info["Used"] @@ -109,14 +109,14 @@ def main(): print("You will have to live without this knowledge") # Check DeleteFile - print("\n\nExpection: Deleting cgi.jpg from memorycard") + print("\n\nExpectation: Deleting cgi.jpg from memorycard") try: state_machine.DeleteFile(unicode(args.folder + "/cgi.jpg")) except gammu.ERR_FILENOTEXIST: print("Oh well - we copy it now ;-) (You SHOULD read this)") # Check AddFilePart - print("\n\nExpection: Put cgi.jpg onto Memorycard on phone") + print("\n\nExpectation: Put cgi.jpg onto Memorycard on phone") file_handle = open(args.testfile, "rb") file_stat = os.stat(args.testfile) ttime = datetime.datetime.fromtimestamp(file_stat[8]) @@ -141,7 +141,7 @@ def main(): file_f = state_machine.AddFilePart(file_f) # Check GetFilePart - print("\n\nExpection: Get cgi.jpg from memorycard and write it as test.jpg") + print("\n\nExpectation: Get cgi.jpg from memorycard and write it as test.jpg") with open("./test.jpg", "wb") as handle: file_f = {"ID_FullName": args.folder + "/cgi.jpg", "Finished": 0} while not file_f["Finished"]: @@ -150,7 +150,7 @@ def main(): handle.flush() # Check correct transfer - print("\n\nExpection: test.jpg and cgi.jpg to be the same") + print("\n\nExpectation: test.jpg and cgi.jpg to be the same") f1 = open(args.testfile, "rb") f2 = open("./test.jpg", "rb") if f1.read() == f2.read(): @@ -161,7 +161,7 @@ def main(): os.remove("./test.jpg") # Check GetNextRootFolder - print("\n\nExpection: Root Folder List") + print("\n\nExpectation: Root Folder List") try: file_obj = state_machine.GetNextRootFolder("") while 1: @@ -174,7 +174,7 @@ def main(): print("Not supported...") # Check GetNextFileFolder - print("\n\nExpection: Info for a file of the phone (cgi.jpg)") + print("\n\nExpectation: Info for a file of the phone (cgi.jpg)") file_f = state_machine.GetNextFileFolder(1) while 1: if file_f["Name"] != "cgi.jpg": @@ -220,13 +220,13 @@ def main(): # Check SetFileAttributes # Protected is spared, as my mobile nokia 6230i says it's unsupported print( - "\n\nExpection: Modifying attributes " + "\n\nExpectation: Modifying attributes " "(readonly=1, protected=0, system=1, hidden=1)" ) state_machine.SetFileAttributes(unicode(args.folder + "/cgi.jpg"), 1, 0, 1, 1) # Check GetFolderListing - print("\n\nExpection: Listing of cgi.jpg's properties") + print("\n\nExpectation: Listing of cgi.jpg's properties") file_f = state_machine.GetFolderListing(unicode(args.folder), 1) while 1: if file_f["Name"] != "cgi.jpg": @@ -270,7 +270,7 @@ def main(): break # Check DeleteFile - print("\n\nExpection: Deletion of cgi.jpg from memorycard") + print("\n\nExpectation: Deletion of cgi.jpg from memorycard") try: state_machine.DeleteFile(unicode(args.folder + "cgi.jpg")) print("Deleted") @@ -278,11 +278,11 @@ def main(): print("Something is wrong ...") # Check AddFolder - print('\n\nExpection: Creation of a folder on the memorycard "42alpha"') + print('\n\nExpectation: Creation of a folder on the memorycard "42alpha"') state_machine.AddFolder(unicode(args.folder), "42alpha") # Check GetFolderListing again *wired* - print("\n\nExpection: Print properties of newly created folder") + print("\n\nExpectation: Print properties of newly created folder") file_f = state_machine.GetFolderListing(unicode(args.folder), 1) while 1: if file_f["Name"] != "42alpha": @@ -326,7 +326,7 @@ def main(): break # Check DeleteFolder - print('\n\nExpection: Deletion of previously created folder "42alpha"') + print('\n\nExpectation: Deletion of previously created folder "42alpha"') state_machine.DeleteFolder(unicode(args.folder + "/42alpha")) diff --git a/examples/listfilesystem.py b/examples/listfilesystem.py index 8e9dda1ab..3825ef3cc 100755 --- a/examples/listfilesystem.py +++ b/examples/listfilesystem.py @@ -67,7 +67,7 @@ state_machine.ReadConfig() state_machine.Init() -# Get wished listing from commandline (if provided - else asume level) +# Get wished listing from commandline (if provided - else assume level) # On commandline level or flat can be provided as parameters if args.flat: mode = "flat" diff --git a/examples/savesmspercontact.py b/examples/savesmspercontact.py index 6c85d3d90..d3b3014fa 100755 --- a/examples/savesmspercontact.py +++ b/examples/savesmspercontact.py @@ -162,7 +162,7 @@ def main(): state_machine.Terminate() # Get all sms - # why in two steps? ERR_TIMOUT is raised without closing the connection + # why in two steps? ERR_TIMEOUT is raised without closing the connection state_machine = gammu.StateMachine() state_machine.ReadConfig() state_machine.Init() diff --git a/examples/service_numbers.py b/examples/service_numbers.py index f855b4f42..cced8605e 100755 --- a/examples/service_numbers.py +++ b/examples/service_numbers.py @@ -51,7 +51,7 @@ def callback(state_machine, callback_type, data): def init(): """ - Intializes gammu and callbacks. + Initializes gammu and callbacks. """ state_machine = gammu.StateMachine() if len(sys.argv) >= 2: diff --git a/examples/vcs.py b/examples/vcs.py index b56393c8d..3ad01ec17 100755 --- a/examples/vcs.py +++ b/examples/vcs.py @@ -20,7 +20,7 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # """ -Example for reading data from phone and convering it to and from +Example for reading data from phone and converting it to and from vCard, vTodo, vCalendar """ diff --git a/examples/worker.py b/examples/worker.py index b78d1a94c..945f8f76b 100755 --- a/examples/worker.py +++ b/examples/worker.py @@ -19,7 +19,7 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. """ -python-gammu - Phone communication libary +python-gammu - Phone communication library Gammu asynchronous wrapper example. This allows your application to care only about handling received data and not about phone communication diff --git a/gammu/__init__.py b/gammu/__init__.py index 4724fee20..a26ee71a8 100644 --- a/gammu/__init__.py +++ b/gammu/__init__.py @@ -19,7 +19,7 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # """ -Phone communication libary - python wrapper for Gammu library. +Phone communication library - python wrapper for Gammu library. """ from gammu._gammu import * diff --git a/gammu/data.py b/gammu/data.py index 4c1618784..0a50c063c 100644 --- a/gammu/data.py +++ b/gammu/data.py @@ -157,7 +157,6 @@ "END_DATETIME", "TONE_ALARM_DATETIME", "SILENT_ALARM_DATETIME", - "RECURRANCE", "TEXT", "DESCRIPTION", "LOCATION", diff --git a/gammu/src/convertors/backup.c b/gammu/src/convertors/backup.c index d06bf578c..19d8fba66 100644 --- a/gammu/src/convertors/backup.c +++ b/gammu/src/convertors/backup.c @@ -1,5 +1,5 @@ /* - * python-gammu - Phone communication libary + * python-gammu - Phone communication library * Copyright (C) 2003 - 2018 Michal Čihař * * This program is free software; you can redistribute it and/or modify diff --git a/gammu/src/convertors/base.c b/gammu/src/convertors/base.c index 009029707..4b78da6ef 100644 --- a/gammu/src/convertors/base.c +++ b/gammu/src/convertors/base.c @@ -1,5 +1,5 @@ /* - * python-gammu - Phone communication libary + * python-gammu - Phone communication library * Copyright (C) 2003 - 2018 Michal Čihař * * This program is free software; you can redistribute it and/or modify diff --git a/gammu/src/convertors/bitmap.c b/gammu/src/convertors/bitmap.c index 288b9e55f..bfed2babe 100644 --- a/gammu/src/convertors/bitmap.c +++ b/gammu/src/convertors/bitmap.c @@ -1,5 +1,5 @@ /* - * python-gammu - Phone communication libary + * python-gammu - Phone communication library * Copyright (C) 2003 - 2018 Michal Čihař * * This program is free software; you can redistribute it and/or modify diff --git a/gammu/src/convertors/calendar.c b/gammu/src/convertors/calendar.c index c2783f5b5..a296dbe53 100644 --- a/gammu/src/convertors/calendar.c +++ b/gammu/src/convertors/calendar.c @@ -1,5 +1,5 @@ /* - * python-gammu - Phone communication libary + * python-gammu - Phone communication library * Copyright (C) 2003 - 2018 Michal Čihař * * This program is free software; you can redistribute it and/or modify diff --git a/gammu/src/convertors/call.c b/gammu/src/convertors/call.c index c099c2d8f..6bfdff4fe 100644 --- a/gammu/src/convertors/call.c +++ b/gammu/src/convertors/call.c @@ -1,5 +1,5 @@ /* - * python-gammu - Phone communication libary + * python-gammu - Phone communication library * Copyright (C) 2003 - 2018 Michal Čihař * * This program is free software; you can redistribute it and/or modify diff --git a/gammu/src/convertors/diverts.c b/gammu/src/convertors/diverts.c index 81db2a151..6ff392737 100644 --- a/gammu/src/convertors/diverts.c +++ b/gammu/src/convertors/diverts.c @@ -1,5 +1,5 @@ /* - * python-gammu - Phone communication libary + * python-gammu - Phone communication library * Copyright (C) 2003 - 2018 Michal Čihař * * This program is free software; you can redistribute it and/or modify diff --git a/gammu/src/convertors/file.c b/gammu/src/convertors/file.c index 95d1fcc7d..6b5c1bfcc 100644 --- a/gammu/src/convertors/file.c +++ b/gammu/src/convertors/file.c @@ -1,5 +1,5 @@ /* - * python-gammu - Phone communication libary + * python-gammu - Phone communication library * Copyright (C) 2003 - 2018 Michal Čihař * * This program is free software; you can redistribute it and/or modify diff --git a/gammu/src/convertors/memory.c b/gammu/src/convertors/memory.c index b24656ec5..3f86690fc 100644 --- a/gammu/src/convertors/memory.c +++ b/gammu/src/convertors/memory.c @@ -1,5 +1,5 @@ /* - * python-gammu - Phone communication libary + * python-gammu - Phone communication library * Copyright (C) 2003 - 2018 Michal Čihař * * This program is free software; you can redistribute it and/or modify diff --git a/gammu/src/convertors/misc.c b/gammu/src/convertors/misc.c index d8720882d..9a53bfe7d 100644 --- a/gammu/src/convertors/misc.c +++ b/gammu/src/convertors/misc.c @@ -1,5 +1,5 @@ /* - * python-gammu - Phone communication libary + * python-gammu - Phone communication library * Copyright (C) 2003 - 2018 Michal Čihař * * This program is free software; you can redistribute it and/or modify diff --git a/gammu/src/convertors/ringtone.c b/gammu/src/convertors/ringtone.c index 783d4eaee..3bcb8418b 100644 --- a/gammu/src/convertors/ringtone.c +++ b/gammu/src/convertors/ringtone.c @@ -1,5 +1,5 @@ /* - * python-gammu - Phone communication libary + * python-gammu - Phone communication library * Copyright (C) 2003 - 2018 Michal Čihař * * This program is free software; you can redistribute it and/or modify @@ -400,7 +400,7 @@ int RingNoteScaleToInt(GSM_RingNoteScale type) return v; } -PyObject *RingCommadToPython(GSM_RingCommand * cmd) +PyObject *RingCommandToPython(GSM_RingCommand * cmd) { PyObject *result; char *type, *style, *note, *durspec, *duration; @@ -464,7 +464,7 @@ PyObject *RingCommadToPython(GSM_RingCommand * cmd) return result; } -int RingCommadFromPython(PyObject * dict, GSM_RingCommand * cmd) +int RingCommandFromPython(PyObject * dict, GSM_RingCommand * cmd) { int i; char *s; @@ -554,7 +554,7 @@ PyObject *RingtoneToPython(GSM_Ringtone * inring) return NULL; for (i = 0; i < ring.NoteTone.NrCommands; i++) { - f = RingCommadToPython(&(ring.NoteTone.Commands[i])); + f = RingCommandToPython(&(ring.NoteTone.Commands[i])); if (f == NULL) { Py_DECREF(v); return NULL; @@ -629,7 +629,7 @@ int RingtoneFromPython(PyObject * dict, GSM_Ringtone * ring) "d in Notes is not a dictionary", i); return 0; } - if (!RingCommadFromPython(item, &(ring->NoteTone.Commands[i]))) + if (!RingCommandFromPython(item, &(ring->NoteTone.Commands[i]))) return 0; } diff --git a/gammu/src/convertors/sms.c b/gammu/src/convertors/sms.c index b484c889c..4b46f3d9d 100644 --- a/gammu/src/convertors/sms.c +++ b/gammu/src/convertors/sms.c @@ -1,5 +1,5 @@ /* - * python-gammu - Phone communication libary + * python-gammu - Phone communication library * Copyright (C) 2003 - 2018 Michal Čihař * * This program is free software; you can redistribute it and/or modify diff --git a/gammu/src/convertors/string.c b/gammu/src/convertors/string.c index 38ca67e31..1c4df01a9 100644 --- a/gammu/src/convertors/string.c +++ b/gammu/src/convertors/string.c @@ -1,5 +1,5 @@ /* - * python-gammu - Phone communication libary + * python-gammu - Phone communication library * Copyright (C) 2003 - 2018 Michal Čihař * * This program is free software; you can redistribute it and/or modify diff --git a/gammu/src/convertors/time.c b/gammu/src/convertors/time.c index 2ac95a6c4..9a9aaeee3 100644 --- a/gammu/src/convertors/time.c +++ b/gammu/src/convertors/time.c @@ -1,5 +1,5 @@ /* - * python-gammu - Phone communication libary + * python-gammu - Phone communication library * Copyright (C) 2003 - 2018 Michal Čihař * * This program is free software; you can redistribute it and/or modify diff --git a/gammu/src/convertors/todo.c b/gammu/src/convertors/todo.c index c6eb2913e..46e5ea8a0 100644 --- a/gammu/src/convertors/todo.c +++ b/gammu/src/convertors/todo.c @@ -1,5 +1,5 @@ /* - * python-gammu - Phone communication libary + * python-gammu - Phone communication library * Copyright (C) 2003 - 2018 Michal Čihař * * This program is free software; you can redistribute it and/or modify diff --git a/gammu/src/convertors/wap.c b/gammu/src/convertors/wap.c index 33386c596..5b8648934 100644 --- a/gammu/src/convertors/wap.c +++ b/gammu/src/convertors/wap.c @@ -1,5 +1,5 @@ /* - * python-gammu - Phone communication libary + * python-gammu - Phone communication library * Copyright (C) 2003 - 2018 Michal Čihař * * This program is free software; you can redistribute it and/or modify diff --git a/gammu/src/data.c b/gammu/src/data.c index a724fd484..0418e7ce2 100644 --- a/gammu/src/data.c +++ b/gammu/src/data.c @@ -1,5 +1,5 @@ /* - * python-gammu - Phone communication libary + * python-gammu - Phone communication library * Copyright (C) 2003 - 2018 Michal Čihař * * This program is free software; you can redistribute it and/or modify diff --git a/gammu/src/errors.c b/gammu/src/errors.c index 79e8d9392..e4fde1fdf 100644 --- a/gammu/src/errors.c +++ b/gammu/src/errors.c @@ -1,5 +1,5 @@ /* - * python-gammu - Phone communication libary + * python-gammu - Phone communication library * Copyright (C) 2003 - 2018 Michal Čihař * * This program is free software; you can redistribute it and/or modify diff --git a/gammu/src/gammu.c b/gammu/src/gammu.c index c7f35d7a3..fd251e0ec 100644 --- a/gammu/src/gammu.c +++ b/gammu/src/gammu.c @@ -1,5 +1,5 @@ /* - * python-gammu - Phone communication libary + * python-gammu - Phone communication library * Copyright (C) 2003 - 2018 Michal Čihař * * This program is free software; you can redistribute it and/or modify @@ -655,7 +655,7 @@ StateMachine_SetConfig(StateMachineObject *self, PyObject *args, PyObject *kwds) free(setv); } else { free(setv); - PyErr_Format(PyExc_ValueError, "Uknown key: %s", s); + PyErr_Format(PyExc_ValueError, "Unknown key: %s", s); return NULL; } } @@ -2053,7 +2053,7 @@ StateMachine_GetMemoryStatus(StateMachineObject *self, PyObject *args, PyObject static char StateMachine_GetMemory__doc__[] = "GetMemory(Type, Location)\n\n" -"Reads entry from memory (phonebooks or calls). Which entry shouldbe read is defined in entry.\n" +"Reads entry from memory (phonebooks or calls). Which entry should be read is defined in entry.\n" "@param Type: Memory type, one of 'ME', 'SM', 'ON', 'DC', 'RC', 'MC', 'MT', 'FD', 'VM'\n" "@type Type: string\n" "@return: Memory entry as hash\n" @@ -2092,7 +2092,7 @@ StateMachine_GetMemory(StateMachineObject *self, PyObject *args, PyObject *kwds) static char StateMachine_GetNextMemory__doc__[] = "GetNextMemory(Type, Start, Location)\n\n" -"Reads entry from memory (phonebooks or calls). Which entry shouldbe read is defined in entry. This can be easily used for reading all entries.\n\n" +"Reads entry from memory (phonebooks or calls). Which entry should be read is defined in entry. This can be easily used for reading all entries.\n\n" "@param Type: Memory type, one of 'ME', 'SM', 'ON', 'DC', 'RC', 'MC', 'MT', 'FD', 'VM'\n" "@type Type: string\n" "@param Start: Whether to start. This can not be used together with Location\n" @@ -3598,7 +3598,7 @@ StateMachine_SetRingtone(StateMachineObject *self, PyObject *args, PyObject *kwd /********************/ static char StateMachine_GetRingtonesInfo__doc__[] = -"Acquires ringtone informaiton." +"Acquires ringtone information." ; static PyObject * @@ -5176,7 +5176,7 @@ StateMachine_SetDebugFile(StateMachineObject *self, PyObject *args, PyObject *kw static char StateMachine_SetDebugLevel__doc__[] = "SetDebugLevel(Level)\n\n" -"Sets state machine debug level accorting to passed string. You need to configure output file using L{SetDebugFile} to activate it.\n\n" +"Sets state machine debug level according to passed string. You need to configure output file using L{SetDebugFile} to activate it.\n\n" "@type Level: string\n" "@param Level: name of debug level to use, currently one of:\n" " - nothing\n" @@ -5616,7 +5616,7 @@ gammu_SetDebugFile(PyObject *self, PyObject *args, PyObject *kwds) static char gammu_SetDebugLevel__doc__[] = "SetDebugLevel(Level)\n\n" -"Sets global debug level accorting to passed string. You need to configure output file using L{SetDebugFile} to activate it.\n\n" +"Sets global debug level according to passed string. You need to configure output file using L{SetDebugFile} to activate it.\n\n" "@type Level: string\n" "@param Level: name of debug level to use, currently one of:\n" " - nothing\n" @@ -5654,7 +5654,7 @@ static char gammu_LinkSMS__doc__[] = "@type Messages: list\n" "@type EMS: boolean\n" "@param Messages: List of messages to link\n" -"@param EMS: Whether to detect ems, defauls to True\n" +"@param EMS: Whether to detect ems, defaults to True\n" "@return: List of linked messages\n" "@rtype: list\n" ; @@ -5709,7 +5709,7 @@ static char gammu_DecodeSMS__doc__[] = "Decodes multi part SMS message.\n\n" "@param Messages: Nessages to decode\n" "@type Messages: list\n" -"@param EMS: Whether to use EMS, defalt to True\n" +"@param EMS: Whether to use EMS, defaults to True\n" "@type EMS: boolean\n" "@return: Multi part message information\n" "@rtype: hash\n" diff --git a/gammu/src/misc.c b/gammu/src/misc.c index ebb14b9ce..8c2765099 100644 --- a/gammu/src/misc.c +++ b/gammu/src/misc.c @@ -1,5 +1,5 @@ /* - * python-gammu - Phone communication libary + * python-gammu - Phone communication library * Copyright (C) 2003 - 2018 Michal Čihař * * This program is free software; you can redistribute it and/or modify diff --git a/gammu/src/smsd.c b/gammu/src/smsd.c index c7b6aec90..f60e551d5 100644 --- a/gammu/src/smsd.c +++ b/gammu/src/smsd.c @@ -1,5 +1,5 @@ /* - * python-gammu - Phone communication libary, SMSD part + * python-gammu - Phone communication library, SMSD part * Copyright (C) 2003 - 2018 Michal Čihař * * This program is free software; you can redistribute it and/or modify diff --git a/gammu/worker.py b/gammu/worker.py index 89e7a7ada..57baf21be 100644 --- a/gammu/worker.py +++ b/gammu/worker.py @@ -110,7 +110,7 @@ def __str__(self): class GammuTask: """ - Storage of taks for gammu. + Storage of tasks for gammu. """ def __init__(self, name, commands): @@ -264,7 +264,7 @@ def join(self, timeout=None): class GammuWorker: """ - Wrapper class for asynchronous communication with Gammu. It spaws + Wrapper class for asynchronous communication with Gammu. It spawns own thread and then passes all commands to this thread. When task is done, caller is notified via callback. """ diff --git a/include/convertors.h b/include/convertors.h index 216c58029..f0b0e6fb4 100644 --- a/include/convertors.h +++ b/include/convertors.h @@ -1,5 +1,5 @@ /* - * python-gammu - Phone communication libary + * python-gammu - Phone communication library * Copyright (C) 2003 - 2018 Michal Čihař * * This program is free software; you can redistribute it and/or modify diff --git a/include/data.h b/include/data.h index 37c558810..438e3d04b 100644 --- a/include/data.h +++ b/include/data.h @@ -1,5 +1,5 @@ /* - * python-gammu - Phone communication libary + * python-gammu - Phone communication library * Copyright (C) 2003 - 2018 Michal Čihař * * This program is free software; you can redistribute it and/or modify diff --git a/include/errors.h b/include/errors.h index fc1668499..223925e57 100644 --- a/include/errors.h +++ b/include/errors.h @@ -1,5 +1,5 @@ /* - * python-gammu - Phone communication libary + * python-gammu - Phone communication library * Copyright (C) 2003 - 2018 Michal Čihař * * This program is free software; you can redistribute it and/or modify diff --git a/include/misc.h b/include/misc.h index 47c5ebfd1..f7c6e834d 100644 --- a/include/misc.h +++ b/include/misc.h @@ -1,5 +1,5 @@ /* - * python-gammu - Phone communication libary + * python-gammu - Phone communication library * Copyright (C) 2003 - 2018 Michal Čihař * * This program is free software; you can redistribute it and/or modify @@ -52,7 +52,7 @@ int pyg_warning(const char *format, ...); PRINTF_STYLE(1, 2) int pyg_error(const char *format, ...); -/* Compatiblity with older python releases */ +/* Compatibility with older python releases */ #if PY_VERSION_HEX < 0x02050000 typedef int Py_ssize_t; #define PY_FORMAT_SIZE_T "" diff --git a/pyproject.toml b/pyproject.toml index 645585ff6..f50787858 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -119,3 +119,9 @@ sort_inline_arrays = true sort_inline_tables = true sort_table_keys = true spaces_before_inline_comment = 2 + +[tool.typos.files] +extend-exclude = [ + "test/data/*.vcf", + "test/data/gammu-dummy/pbk/ME/103" +] diff --git a/setup.py b/setup.py index c367b02af..d7bc6a3ca 100755 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # """ -python-gammu - Phone communication libary +python-gammu - Phone communication library """ import codecs