Skip to content

Commit

Permalink
remove lib from exludes, fix all remaining typos
Browse files Browse the repository at this point in the history
  • Loading branch information
hathach committed Mar 23, 2023
1 parent ce2c3d7 commit a8abe8e
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 15 deletions.
7 changes: 7 additions & 0 deletions .codespell/exclude-file.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#define MICROPY_HW_BOARD_NAME "BLOK"
USB_PRODUCT = "BLOK"
uint32_t THI = (*(uint32_t *)FUSES_HOT_TEMP_VAL_INT_ADDR & FUSES_HOT_TEMP_VAL_INT_Msk) >> FUSES_HOT_TEMP_VAL_INT_Pos;
float TH = THI + convert_dec_to_frac(THD);
print(binascii.b2a_base64(b"fo"))
# again, neither will "there" or "wither", since they have "the"
i1Qb$TE"rl
3 changes: 3 additions & 0 deletions .codespell/ignore-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ pris
synopsys
reenable
dout
inout
wel
iput
hsi
Expand All @@ -17,3 +18,5 @@ dum
deque
deques
extint
shs
pass-thru
6 changes: 5 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ repos:
hooks:
- id: codespell
#args: [-w]
exclude: ^(locale/|lib/)
exclude: |
(?x)^(
locale/|
lib/
)
- repo: local
hooks:
- id: translations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ extern "C" {
/** @brief Supervisor call declaration.
*
* A call to a function marked with @ref SVCALL, will trigger a Supervisor Call (SVC) Exception.
* The SVCs with SVC numbers 0x00-0x0F are forwared to the application. All other SVCs are handled by the SoftDevice.
* The SVCs with SVC numbers 0x00-0x0F are forwarded to the application. All other SVCs are handled by the SoftDevice.
*
* @param[in] number The SVC number to be used.
* @param[in] return_type The return type of the SVC function.
Expand Down
4 changes: 2 additions & 2 deletions ports/raspberrypi/mpconfigport.mk
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ CIRCUITPY_ROTARYIO ?= 1
CIRCUITPY_ROTARYIO_SOFTENCODER = 1

# Things that need to be implemented.
# Use PWM interally
# Use PWM internally
CIRCUITPY_FREQUENCYIO = 0
CIRCUITPY_I2CTARGET = 1
CIRCUITPY_NVM = 1
# Use PIO interally
# Use PIO internally
CIRCUITPY_PULSEIO ?= 1
CIRCUITPY_WATCHDOG ?= 1

Expand Down
2 changes: 1 addition & 1 deletion ports/stm/common-hal/audiobusio/MEMS_Audio_ll_stm32l4.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ typedef struct MemsAudio_STM32L4SAIPDM_t {
pdm_data_available_t pdm_data_available;

/**
* @brief A cound of the number of PDM clients in use.
* @brief A count of the number of PDM clients in use.
*/
uint32_t SAI1_client;

Expand Down
4 changes: 2 additions & 2 deletions py/emitbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ STATIC void emit_write_bytecode_byte_obj(emit_t *emit, int stack_adj, byte b, mp
emit_write_bytecode_byte(emit, stack_adj, b);
emit->bytecode_offset = (size_t)MP_ALIGN(emit->bytecode_offset, sizeof(mp_obj_t));
mp_obj_t *c = (mp_obj_t *)emit_get_cur_to_write_bytecode(emit, sizeof(mp_obj_t));
// Verify thar c is already uint-aligned
// Verify that c is already uint-aligned
assert(c == MP_ALIGN(c, sizeof(mp_obj_t)));
*c = obj;
#endif
Expand All @@ -269,7 +269,7 @@ STATIC void emit_write_bytecode_byte_raw_code(emit_t *emit, int stack_adj, byte
emit_write_bytecode_byte(emit, stack_adj, b);
emit->bytecode_offset = (size_t)MP_ALIGN(emit->bytecode_offset, sizeof(void *));
void **c = (void **)emit_get_cur_to_write_bytecode(emit, sizeof(void *));
// Verify thar c is already uint-aligned
// Verify that c is already uint-aligned
assert(c == MP_ALIGN(c, sizeof(void *)));
*c = rc;
#endif
Expand Down
2 changes: 1 addition & 1 deletion py/emitnative.c
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ STATIC void emit_access_stack(emit_t *emit, int pos, vtype_kind_t *vtype, int re
}

// does an efficient X=pop(); discard(); push(X)
// needs a (non-temp) register in case the poped element was stored in the stack
// needs a (non-temp) register in case the popped element was stored in the stack
STATIC void emit_fold_stack_top(emit_t *emit, int reg_dest) {
stack_info_t *si = &emit->stack_info[emit->stack_size - 2];
si[0] = si[1];
Expand Down
2 changes: 1 addition & 1 deletion py/scope.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ typedef struct _id_info_t {
uint8_t kind;
uint8_t flags;
// when it's an ID_INFO_KIND_LOCAL this is the unique number of the local
// whet it's an ID_INFO_KIND_CELL/FREE this is the unique number of the closed over variable
// when it's an ID_INFO_KIND_CELL/FREE this is the unique number of the closed over variable
uint16_t local_num;
qstr qst;
} id_info_t;
Expand Down
1 change: 0 additions & 1 deletion shared-bindings/socketpool/SocketPool.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
//| returned by :py:attr:`wifi.radio`
//| """
//| ...
//|
STATIC mp_obj_t socketpool_socketpool_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) {
mp_arg_check_num(n_args, n_kw, 1, 1, false);

Expand Down
2 changes: 1 addition & 1 deletion tests/basics/int_big1.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# to test arbitrariy precision integers
# to test arbitrarily precision integers

x = 1000000000000000000000000000000
xn = -1000000000000000000000000000000
Expand Down
4 changes: 2 additions & 2 deletions tests/basics/with_return.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def f():
return (i, j)
print(f())

# multiple for loops within nested withs
# multiple for loops within nested with(s)
def f():
with CtxMgr(1):
for i in [1, 2]:
Expand All @@ -41,7 +41,7 @@ def f():
return (i, j, k, l)
print(f())

# multiple for loops that are optimised, and nested withs
# multiple for loops that are optimised, and nested with(s)
def f():
with CtxMgr(1):
for i in range(1, 3):
Expand Down
2 changes: 1 addition & 1 deletion tests/feature_check/README
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This directory doesn't contain real tests, but code snippets to detect
various interpreter features, which can't be/inconvenient to detecte by
various interpreter features, which can't be/inconvenient to detected by
other means. Scripts here are executed by run-tests.py at the beginning of
testsuite to decide what other test groups to run/exclude.
2 changes: 1 addition & 1 deletion tests/misc/non_compliant.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
except NotImplementedError:
print("NotImplementedError")

# uPy raises TypeError, shold be ValueError
# uPy raises TypeError, should be ValueError
try:
"%c" % b"\x01\x02"
except (TypeError, ValueError):
Expand Down

0 comments on commit a8abe8e

Please sign in to comment.