959 changes: 79 additions & 880 deletions ibis/config.py

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion ibis/expr/timecontext.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@
# In order to use time context feature, there must be a column of Timestamp
# type, and named as 'time' in TableExpr. This TIME_COL constant will be
# used in filtering data from a table or columns of a table. It can be changed
# by ibis.set_option('time_col')
# by running:
#
# ibis.config.options.context_adjustment.time_col = "other_time_col"


def get_time_col():
Expand Down
10 changes: 0 additions & 10 deletions ibis/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,3 @@ class Distribution(NamedTuple):
msg = r"\d+ packages found for backend 'foo'"
with pytest.raises(RuntimeError, match=msg):
ibis.foo


@pytest.mark.parametrize(
('key', 'value'), [("two.levels", True), ("gt.two.levels", 55)]
)
def test_getting_setting_config_options(key, value):
ibis.config.register_option(key, "DEFAULT")
assert ibis.config.get_option(key) == "DEFAULT"
ibis.config.set_option(key, value)
assert ibis.config.get_option(key) == value
54 changes: 53 additions & 1 deletion poetry.lock
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ multipledispatch = ">=0.6,<0.7"
numpy = ">=1,<2"
pandas = ">=1.2.5,<2"
parsy = ">=1.3.0,<2"
pydantic = ">=1.9.0,<2"
regex = ">=2021.7.6"
toolz = ">=0.11,<0.12"
typing-extensions = { version = "^4.0.1", python = "<3.8" }
Expand Down
1 change: 1 addition & 0 deletions setup.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.