Skip to content

Commit 11b0896

Browse files
committed
test: update codespell settings
Update settings to more close to the EE checks. Note: there is still a problem with spell checking some of the documentation files because they are ignored.
1 parent 3d2eb14 commit 11b0896

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

.codespellrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[codespell]
2-
skip = */rocks/third_party,*/cartridge/third_party,tarantool-static-build.patch,./cli/cluster/paths.go
2+
skip = go.sum,**/third_party,tarantool-*,mage
33
count =
44
quiet-level = 3
55
ignore-words-list = fo

lib/dial/dial_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ func TestNew(t *testing.T) {
3838
},
3939
},
4040
{
41-
name: "deafult",
41+
name: "default",
4242
opts: Opts{
4343
Transport: "",
4444
},
4545
expected: tarantool.NetDialer{},
4646
},
4747
{
48-
name: "deafult_but_key_is_set",
48+
name: "default_but_key_is_set",
4949
opts: Opts{
5050
SslKeyFile: "any.key",
5151
Transport: "",

magefile.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ func IntegrationNoTarantool() error {
445445
func Codespell() error {
446446
fmt.Println("Running codespell tests...")
447447

448-
return sh.RunV("codespell", packagePath, "test", "README.md", "doc", "CHANGELOG.md")
448+
return sh.RunV("codespell", ".")
449449
}
450450

451451
// Run all tests together, excluding slow and unit integration tests.

test/integration/cluster/test_cluster_promote.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def to_etcd_key(key):
4242
"etcd",
4343
"manual_no_leader",
4444
None,
45-
id="failover = maual; no leader",
45+
id="failover = manual; no leader",
4646
),
4747
pytest.param(
4848
"etcd",
@@ -102,7 +102,7 @@ def to_etcd_key(key):
102102
"tcs",
103103
"manual_no_leader",
104104
None,
105-
id="failover = maual; no leader",
105+
id="failover = manual; no leader",
106106
),
107107
pytest.param(
108108
"tcs",

test/integration/replicaset/test_replicaset_expel.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def test_expel_cartridge(tt_cmd, cartridge_app):
113113
"""
114114
status_unexpelled = status_expelled + " • s2-replica localhost:3305 read\n"
115115

116-
# Wait for the configurated state.
116+
# Wait for the configured state.
117117
for _ in range(100):
118118
rs_cmd = [tt_cmd, "replicaset", "status", f"{cartridge_name}:s2-master"]
119119
rs_rc, rs_out = run_command_and_get_output(rs_cmd, cwd=cartridge_app.workdir)

test/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ flake8-unused-arguments==0.0.6
66
flake8-isort==6.1.0
77
psutil==5.7.0
88
pyyaml==6.0.1
9-
codespell==2.2.5
9+
codespell==2.4.1
1010
netifaces==0.11.0
1111
etcd3==0.12.0
1212
protobuf==3.20.3

0 commit comments

Comments
 (0)