Skip to content

Commit 8851e3d

Browse files
codespell: resolve spell issues
Skip autogenerated timezones since there are too many abbreviations that confuse codespell. Part of #270
1 parent 702617c commit 8851e3d

File tree

9 files changed

+13
-10
lines changed

9 files changed

+13
-10
lines changed

.codespellrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[codespell]
2+
skip = tarantool/msgpack_ext/types/timezones/timezones.py
3+
ignore-words-list = ans,gost

tarantool/connection.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ class JoinState(Enum):
469469

470470
INITIAL = 2
471471
"""
472-
Received inital vclock.
472+
Received initial vclock.
473473
"""
474474

475475
FINAL = 3

tarantool/msgpack_ext/types/datetime.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def __init__(self, *, timestamp=None, year=None, month=None,
211211
:type tz: :obj:`str`, optional
212212
213213
:param timestamp_since_utc_epoch: Parameter to set timestamp
214-
convertion behavior for timezone-aware datetimes.
214+
conversion behavior for timezone-aware datetimes.
215215
216216
If ``False`` (default), behaves similar to Tarantool
217217
`datetime.new()`_:
@@ -232,7 +232,7 @@ def __init__(self, *, timestamp=None, year=None, month=None,
232232
233233
Thus, if ``False``, datetime is computed from timestamp
234234
since epoch and then timezone is applied without any
235-
convertion. In that case,
235+
conversion. In that case,
236236
:attr:`~tarantool.Datetime.timestamp` won't be equal to
237237
initialization
238238
:paramref:`~tarantool.Datetime.params.timestamp` for all

tarantool/request.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def packer_factory(conn):
113113
else:
114114
packer_kwargs['use_bin_type'] = True
115115

116-
# We need configured packer to work with error extention
116+
# We need configured packer to work with error extension
117117
# type payload, but module do not provide access to self
118118
# inside extension type packers.
119119
def default(obj):

tarantool/response.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def unpacker_factory(conn):
7676
if msgpack.version >= (1, 0, 0):
7777
unpacker_kwargs['strict_map_key'] = False
7878

79-
# We need configured unpacker to work with error extention
79+
# We need configured unpacker to work with error extension
8080
# type payload, but module do not provide access to self
8181
# inside extension type unpackers.
8282
def ext_hook(code, data):

test/suites/lib/skip.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def skip_or_run_test_tarantool_call(self, required_tt_version, msg):
8383
def skip_or_run_test_pcall_require(func, required_tt_module, msg):
8484
"""
8585
Decorator to skip or run tests depending on tarantool
86-
module requre success or fail.
86+
module require success or fail.
8787
8888
Also, it can be used with the 'setUp' method for skipping
8989
the whole test suite.

test/suites/lib/tarantool_server.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def start(self):
333333
* (MAYBE) Copy init.lua --INSIDE
334334
* Concatenate arguments and
335335
start Tarantool\\Box --DONE(prepare_args)
336-
* Wait unitl Tarantool\\Box
336+
* Wait until Tarantool\\Box
337337
started --DONE(wait_until_started)
338338
"""
339339
# pylint: disable=consider-using-with

test/suites/test_crud.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -670,10 +670,10 @@ def _correct_operation_with_crud(self, testing_function, case, mode=None):
670670
*case['success']['input']['args'],
671671
)
672672
if 'rows' in case['success']['output']:
673-
# Case for crud responce as tarantool.crud.CrudResult obj.
673+
# Case for crud response as tarantool.crud.CrudResult obj.
674674
self.assertEqual(resp.rows, case['success']['output']['rows'])
675675
if 'scalar' in case['success']['output']:
676-
# Case for scalar value as crud responce, not tarantool.crud.CrudResult obj.
676+
# Case for scalar value as crud response, not tarantool.crud.CrudResult obj.
677677
self.assertEqual(resp, case['success']['output']['scalar'])
678678
if 'operations' in case['success']['output']:
679679
# Case for statistics testing.

test/suites/test_execute.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
This module tests API fo execute SQL on a server.
2+
This module tests API for running SQL on a server.
33
"""
44
# pylint: disable=missing-class-docstring,missing-function-docstring,duplicate-code
55

0 commit comments

Comments
 (0)