Skip to content

Commit 5e206fd

Browse files
cclaussdpgeorge
authored andcommitted
all: Upgrade codespell to v2.4.1.
This commit upgrades from codespell==2.2.6 to the current codespell==2.4.1, adding emac to the ignore-words-list. Signed-off-by: Christian Clauss <[email protected]>
1 parent 8b1ed44 commit 5e206fd

File tree

18 files changed

+18
-18
lines changed

18 files changed

+18
-18
lines changed

.github/workflows/codespell.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ jobs:
88
steps:
99
- uses: actions/checkout@v4
1010
# codespell version should be kept in sync with .pre-commit-config.yml
11-
- run: pip install --user codespell==2.2.6 tomli
11+
- run: pip install --user codespell==2.4.1 tomli
1212
- run: codespell
1313

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repos:
1919
- id: ruff-format
2020
- repo: https://github.com/codespell-project/codespell
2121
# Version should be kept in sync with .github/workflows/codespell.yml
22-
rev: v2.2.6
22+
rev: v2.4.1
2323
hooks:
2424
- id: codespell
2525
name: Spellcheck for changed files (codespell)

docs/reference/isr_rules.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ issue a further interrupt. It then schedules a callback to process the data.
209209

210210
Scheduled callbacks should comply with the principles of interrupt handler design outlined below. This is to
211211
avoid problems resulting from I/O activity and the modification of shared data which can arise in any code
212-
which pre-empts the main program loop.
212+
which preempts the main program loop.
213213

214214
Execution time needs to be considered in relation to the frequency with which interrupts can occur. If an
215215
interrupt occurs while the previous callback is executing, a further instance of the callback will be queued

docs/reference/speed_python.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ process known as garbage collection reclaims the memory used by these redundant
219219
objects and the allocation is then tried again - a process which can take several
220220
milliseconds.
221221

222-
There may be benefits in pre-empting this by periodically issuing `gc.collect()`.
222+
There may be benefits in preempting this by periodically issuing `gc.collect()`.
223223
Firstly doing a collection before it is actually required is quicker - typically on the
224224
order of 1ms if done frequently. Secondly you can determine the point in code
225225
where this time is used rather than have a longer delay occur at random points,

examples/usercmodule/cexample/examplemodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
7474
// - A custom representation for __repr__ and __str__.
7575
// - Custom attribute handling to create a read/write "property".
7676
//
77-
// It re-uses some of the elements of the basic Timer class. This is allowed
77+
// It reuses some of the elements of the basic Timer class. This is allowed
7878
// because they both use example_Timer_obj_t as the instance structure.
7979

8080
// Handles AdvancedTimer.__repr__, AdvancedTimer.__str__.

extmod/modlwip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ static void _lwip_tcp_err_unaccepted(void *arg, err_t err) {
476476
// because it's only ever used by lwIP if tcp_connect is called on the TCP PCB.
477477
lwip_socket_obj_t *socket = (lwip_socket_obj_t *)pcb->connected;
478478

479-
// Array is not volatile because thiss callback is executed within the lwIP context
479+
// Array is not volatile because this callback is executed within the lwIP context
480480
uint8_t alloc = socket->incoming.connection.alloc;
481481
struct tcp_pcb **tcp_array = (struct tcp_pcb **)lwip_socket_incoming_array(socket);
482482

ports/esp32/mpthreadport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ int mp_thread_mutex_lock(mp_thread_mutex_t *mutex, int wait) {
213213

214214
void mp_thread_mutex_unlock(mp_thread_mutex_t *mutex) {
215215
xSemaphoreGive(mutex->handle);
216-
// Python threads run at equal priority, so pre-emptively yield here to
216+
// Python threads run at equal priority, so preemptively yield here to
217217
// prevent pathological imbalances where a thread unlocks and then
218218
// immediately re-locks a mutex before a context switch can occur, leaving
219219
// another thread waiting for an unbounded period of time.

ports/mimxrt/boards/ADAFRUIT_METRO_M7/mpconfigboard.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
{ IOMUXC_GPIO_02_LPI2C1_SCL }, { IOMUXC_GPIO_01_LPI2C1_SDA }, \
5353
{ IOMUXC_GPIO_10_LPI2C2_SCL }, { IOMUXC_GPIO_09_LPI2C2_SDA },
5454

55-
// Wifi Deinitions
55+
// Wifi Definitions
5656
#define MICROPY_PY_NETWORK_HOSTNAME_DEFAULT "mpy-metro-m7"
5757

5858
#define MICROPY_HW_WIFI_SPI_ID (0)

ports/mimxrt/eth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ static void eth_gpio_init(const iomux_table_t iomux_table[], size_t iomux_table_
327327
}
328328
}
329329

330-
// eth_phy_init: Initilaize the PHY interface
330+
// eth_phy_init: Initialize the PHY interface
331331
static void eth_phy_init(phy_handle_t *phyHandle, phy_config_t *phy_config,
332332
phy_speed_t *speed, phy_duplex_t *duplex, uint32_t phy_settle_time) {
333333

ports/mimxrt/hal/flexspi_flash_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ enum
119119
kFlexSpiMiscOffset_WordAddressableEnable = 3, // !< Bit for Word Addressable enable
120120
kFlexSpiMiscOffset_SafeConfigFreqEnable = 4, // !< Bit for Safe Configuration Frequency enable
121121
kFlexSpiMiscOffset_PadSettingOverrideEnable = 5, // !< Bit for Pad setting override enable
122-
kFlexSpiMiscOffset_DdrModeEnable = 6, // !< Bit for DDR clock confiuration indication.
122+
kFlexSpiMiscOffset_DdrModeEnable = 6, // !< Bit for DDR clock configuration indication.
123123
};
124124

125125
// !@brief Flash Type Definition

ports/mimxrt/sdcard.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ bool sdcard_power_on(mimxrt_sdcard_obj_t *card) {
980980
return false;
981981
}
982982

983-
// Finialize initialization
983+
// Finalize initialization
984984
card->state->initialized = true;
985985
return true;
986986
}

ports/nrf/boards/MICROBIT/modules/microbitfont.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ DEALINGS IN THE SOFTWARE.
3636
*
3737
* Example: { 0x08, 0x08, 0x08, 0x0, 0x08 }
3838
*
39-
* The above will produce an exclaimation mark on the second column in form the left.
39+
* The above will produce an exclamation mark on the second column in form the left.
4040
*
4141
* We could compress further, but the complexity of decode would likely outweigh the gains.
4242
*/

ports/rp2/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ int main(int argc, char **argv) {
9090
// Set the MCU frequency and as a side effect the peripheral clock to 48 MHz.
9191
set_sys_clock_khz(SYS_CLK_KHZ, false);
9292

93-
// Hook for setting up anything that needs to be super early in the bootup process.
93+
// Hook for setting up anything that needs to be super early in the boot-up process.
9494
MICROPY_BOARD_STARTUP();
9595

9696
#if MICROPY_HW_ENABLE_UART_REPL

ports/samd/mcu/samd21/mpconfigmcu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Deinitions common to all SAMD21 boards
1+
// Definitions common to all SAMD21 boards
22
#include "samd21.h"
33

44
#define MICROPY_CONFIG_ROM_LEVEL (MICROPY_CONFIG_ROM_LEVEL_BASIC_FEATURES)

ports/samd/mcu/samd51/mpconfigmcu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Deinitions common to all SAMD51 boards
1+
// Definitions common to all SAMD51 boards
22
#include "samd51.h"
33

44
#define MICROPY_CONFIG_ROM_LEVEL (MICROPY_CONFIG_ROM_LEVEL_FULL_FEATURES)

ports/windows/windows_mphal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void mp_hal_stdio_mode_orig(void) {
7070
}
7171

7272
// Handler to be installed by SetConsoleCtrlHandler, currently used only to handle Ctrl-C.
73-
// This handler has to be installed just once (this has to be done elswhere in init code).
73+
// This handler has to be installed just once (this has to be done elsewhere in init code).
7474
// Previous versions of the mp_hal code would install a handler whenever Ctrl-C input is
7575
// allowed and remove the handler again when it is not. That is not necessary though (1),
7676
// and it might introduce problems (2) because console notifications are delivered to the

py/reader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void mp_reader_new_file(mp_reader_t *reader, qstr filename);
4848
void mp_reader_new_file_from_fd(mp_reader_t *reader, int fd, bool close_fd);
4949

5050
// Try to efficiently read the given number of bytes from a ROM-based reader.
51-
// Returns a valid, non-NULL pointer to the requseted data if the reader points to ROM.
51+
// Returns a valid, non-NULL pointer to the requested data if the reader points to ROM.
5252
// Returns NULL if the reader does not point to ROM.
5353
const uint8_t *mp_reader_try_read_rom(mp_reader_t *reader, size_t len);
5454

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tool.codespell]
22
count = ""
33
ignore-regex = '\b[A-Z]{3}\b'
4-
ignore-words-list = "ans,asend,deques,dout,extint,hsi,iput,mis,numer,shft,synopsys,technic,ure"
4+
ignore-words-list = "ans,asend,deques,dout,emac,extint,hsi,iput,mis,numer,shft,synopsys,technic,ure"
55
quiet-level = 3
66
skip = """
77
*/build*,\

0 commit comments

Comments
 (0)