Skip to content

Commit 9a4d1f8

Browse files
kianmengcpcloud
authored andcommitted
docs: fix typos
Found via `typos --hidden --format brief`
1 parent 72bec75 commit 9a4d1f8

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

docs/contribute/04_maintainers_guide.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ Assuming your file is called `example.csv`:
3838
1. Add a file named `ibis/examples/descriptions/example` that contains a
3939
description of your example. One line is best, but not necessary.
4040
1. Run one of the following **from the git root of an ibis clone**:
41-
- `python ibis/examples/gen_registry.py` (doesn't include R dependenices)
42-
- `nix run '.#gen-examples'` (includes R dependenices)
41+
- `python ibis/examples/gen_registry.py` (doesn't include R dependencies)
42+
- `nix run '.#gen-examples'` (includes R dependencies)
4343

4444
## Release
4545

ibis/backends/clickhouse/tests/test_functions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def test_typeof(con, value, expected):
169169

170170

171171
@pytest.mark.parametrize(("value", "expected"), [("foo_bar", 7), ("", 0)])
172-
def test_string_length(con, value, expected):
172+
def test_tuple_string_length(con, value, expected):
173173
assert con.execute(L(value).length()) == expected
174174

175175

@@ -208,7 +208,7 @@ def test_string_lower(con):
208208
assert con.execute(L("FOO").lower()) == "foo"
209209

210210

211-
def test_string_lenght(con):
211+
def test_string_length(con):
212212
assert con.execute(L("FOO").length()) == 3
213213

214214

ibis/backends/dask/aggcontext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def agg(
140140
# (1) windowed.count() will exclude NaN observations
141141
# , which results in incorrect window sizes.
142142
# (2) windowed.apply(len, raw=True) will include NaN
143-
# obversations, but doesn't work on non-numeric types.
143+
# observations, but doesn't work on non-numeric types.
144144
# https://github.com/pandas-dev/pandas/issues/23002
145145
# To deal with this, we create a _placeholder column
146146
windowed_frame = self.construct_window(grouped_frame)

ibis/backends/dask/tests/test_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ def test_invalid_connection_parameter_types(npartitions):
119119
}
120120
)
121121

122-
expeced_msg = re.escape(
122+
expected_msg = re.escape(
123123
"Expected an instance of 'dask.dataframe.DataFrame' for 'df', "
124124
"got an instance of 'str' instead."
125125
)
126126
con = ibis.dask.connect()
127-
with pytest.raises(TypeError, match=expeced_msg):
127+
with pytest.raises(TypeError, match=expected_msg):
128128
con.from_dataframe("file.csv")

ibis/backends/flink/tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ def connect(*, tmpdir, worker_id, **kw: Any):
3636
stream_env = gateway.jvm.org.apache.flink.streaming.api.environment.StreamExecutionEnvironment
3737
flink_cluster_addr = os.environ.get("FLINK_REMOTE_CLUSTER_ADDR", "localhost")
3838
flink_cluster_port = int(os.environ.get("FLINK_REMOTE_CLUSTER_PORT", "8081"))
39-
j_stream_exection_environment = stream_env.createRemoteEnvironment(
39+
j_stream_execution_environment = stream_env.createRemoteEnvironment(
4040
flink_cluster_addr,
4141
flink_cluster_port,
4242
env_settings.getConfiguration(),
4343
string_array,
4444
)
4545

46-
env = StreamExecutionEnvironment(j_stream_exection_environment)
46+
env = StreamExecutionEnvironment(j_stream_execution_environment)
4747
stream_table_env = StreamTableEnvironment.create(env)
4848
return ibis.flink.connect(stream_table_env, **kw)
4949

ibis/backends/pandas/aggcontext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ def agg(
631631
# (1) windowed.count() will exclude NaN observations
632632
# , which results in incorrect window sizes.
633633
# (2) windowed.apply(len, raw=True) will include NaN
634-
# obversations, but doesn't work on non-numeric types.
634+
# observations, but doesn't work on non-numeric types.
635635
# https://github.com/pandas-dev/pandas/issues/23002
636636
# To deal with this, we create a _placeholder column
637637

ibis/expr/operations/tests/test_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def record(node, _, *args, **kwargs):
8989
]
9090

9191

92-
def test_node_subtitution():
92+
def test_node_substitution():
9393
class Aliased(Base):
9494
arg: ops.Node
9595
name: str

ibis/expr/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@
298298
("s_zip", "string"),
299299
("s_country", "string"),
300300
("s_gmt_offset", "decimal(5,2)"),
301-
("s_tax_precentage", "decimal(5,2)"),
301+
("s_tax_percentage", "decimal(5,2)"),
302302
],
303303
"tpcds_store_sales": [
304304
("ss_sold_time_sk", "bigint"),

ibis/tests/expr/test_interactive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def test_compile_no_execute(con):
105105
assert con.executed_queries == []
106106

107107

108-
def test_isin_rule_supressed_exception_repr_not_fail(con):
108+
def test_isin_rule_suppressed_exception_repr_not_fail(con):
109109
with config.option_context("interactive", True):
110110
t = con.table("functional_alltypes")
111111
bool_clause = t["string_col"].notin(["1", "4", "7"])

0 commit comments

Comments
 (0)