remove lib from exludes, fix all remaining typos

This commit is contained in:
hathach 2023-03-20 13:36:08 +07:00
parent ce2c3d7dc5
commit a8abe8e705
No known key found for this signature in database
GPG Key ID: F5D50C6D51D17CBA
14 changed files with 28 additions and 15 deletions

View File

@ -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

View File

@ -7,6 +7,7 @@ pris
synopsys synopsys
reenable reenable
dout dout
inout
wel wel
iput iput
hsi hsi
@ -17,3 +18,5 @@ dum
deque deque
deques deques
extint extint
shs
pass-thru

View File

@ -16,7 +16,11 @@ repos:
hooks: hooks:
- id: codespell - id: codespell
#args: [-w] #args: [-w]
exclude: ^(locale/|lib/) exclude: |
(?x)^(
locale/|
lib/
)
- repo: local - repo: local
hooks: hooks:
- id: translations - id: translations

View File

@ -48,7 +48,7 @@ extern "C" {
/** @brief Supervisor call declaration. /** @brief Supervisor call declaration.
* *
* A call to a function marked with @ref SVCALL, will trigger a Supervisor Call (SVC) Exception. * 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] number The SVC number to be used.
* @param[in] return_type The return type of the SVC function. * @param[in] return_type The return type of the SVC function.

View File

@ -21,11 +21,11 @@ CIRCUITPY_ROTARYIO ?= 1
CIRCUITPY_ROTARYIO_SOFTENCODER = 1 CIRCUITPY_ROTARYIO_SOFTENCODER = 1
# Things that need to be implemented. # Things that need to be implemented.
# Use PWM interally # Use PWM internally
CIRCUITPY_FREQUENCYIO = 0 CIRCUITPY_FREQUENCYIO = 0
CIRCUITPY_I2CTARGET = 1 CIRCUITPY_I2CTARGET = 1
CIRCUITPY_NVM = 1 CIRCUITPY_NVM = 1
# Use PIO interally # Use PIO internally
CIRCUITPY_PULSEIO ?= 1 CIRCUITPY_PULSEIO ?= 1
CIRCUITPY_WATCHDOG ?= 1 CIRCUITPY_WATCHDOG ?= 1

View File

@ -148,7 +148,7 @@ typedef struct MemsAudio_STM32L4SAIPDM_t {
pdm_data_available_t pdm_data_available; 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; uint32_t SAI1_client;

View File

@ -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_write_bytecode_byte(emit, stack_adj, b);
emit->bytecode_offset = (size_t)MP_ALIGN(emit->bytecode_offset, sizeof(mp_obj_t)); 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)); 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))); assert(c == MP_ALIGN(c, sizeof(mp_obj_t)));
*c = obj; *c = obj;
#endif #endif
@ -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_write_bytecode_byte(emit, stack_adj, b);
emit->bytecode_offset = (size_t)MP_ALIGN(emit->bytecode_offset, sizeof(void *)); emit->bytecode_offset = (size_t)MP_ALIGN(emit->bytecode_offset, sizeof(void *));
void **c = (void **)emit_get_cur_to_write_bytecode(emit, 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 *))); assert(c == MP_ALIGN(c, sizeof(void *)));
*c = rc; *c = rc;
#endif #endif

View File

@ -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) // 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) { STATIC void emit_fold_stack_top(emit_t *emit, int reg_dest) {
stack_info_t *si = &emit->stack_info[emit->stack_size - 2]; stack_info_t *si = &emit->stack_info[emit->stack_size - 2];
si[0] = si[1]; si[0] = si[1];

View File

@ -49,7 +49,7 @@ typedef struct _id_info_t {
uint8_t kind; uint8_t kind;
uint8_t flags; uint8_t flags;
// when it's an ID_INFO_KIND_LOCAL this is the unique number of the local // 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; uint16_t local_num;
qstr qst; qstr qst;
} id_info_t; } id_info_t;

View File

@ -52,7 +52,6 @@
//| returned by :py:attr:`wifi.radio` //| 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) { 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); mp_arg_check_num(n_args, n_kw, 1, 1, false);

View File

@ -1,4 +1,4 @@
# to test arbitrariy precision integers # to test arbitrarily precision integers
x = 1000000000000000000000000000000 x = 1000000000000000000000000000000
xn = -1000000000000000000000000000000 xn = -1000000000000000000000000000000

View File

@ -30,7 +30,7 @@ def f():
return (i, j) return (i, j)
print(f()) print(f())
# multiple for loops within nested withs # multiple for loops within nested with(s)
def f(): def f():
with CtxMgr(1): with CtxMgr(1):
for i in [1, 2]: for i in [1, 2]:
@ -41,7 +41,7 @@ def f():
return (i, j, k, l) return (i, j, k, l)
print(f()) print(f())
# multiple for loops that are optimised, and nested withs # multiple for loops that are optimised, and nested with(s)
def f(): def f():
with CtxMgr(1): with CtxMgr(1):
for i in range(1, 3): for i in range(1, 3):

View File

@ -1,4 +1,4 @@
This directory doesn't contain real tests, but code snippets to detect 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 other means. Scripts here are executed by run-tests.py at the beginning of
testsuite to decide what other test groups to run/exclude. testsuite to decide what other test groups to run/exclude.

View File

@ -39,7 +39,7 @@ try:
except NotImplementedError: except NotImplementedError:
print("NotImplementedError") print("NotImplementedError")
# uPy raises TypeError, shold be ValueError # uPy raises TypeError, should be ValueError
try: try:
"%c" % b"\x01\x02" "%c" % b"\x01\x02"
except (TypeError, ValueError): except (TypeError, ValueError):