Skip to content

Commit

Permalink
Add core dask config file
Browse files Browse the repository at this point in the history
  • Loading branch information
mrocklin committed May 4, 2019
1 parent 8fdc88f commit b164b65
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dask/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,3 +497,14 @@ def expand_environment_variables(config):


refresh()


if yaml:
fn = os.path.join(os.path.dirname(__file__), "dask.yaml")
ensure_file(source=fn)

with open(fn) as f:
_defaults = yaml.safe_load(f)

update_defaults(_defaults)
del fn, _defaults
1 change: 1 addition & 0 deletions dask/dask.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
temporary-directory: null
4 changes: 4 additions & 0 deletions dask/tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,3 +392,7 @@ def test_get_set_roundtrip(key):

def test_merge_None_to_dict():
assert dask.config.merge({'a': None, 'c': 0}, {'a': {'b': 1}}) == {'a': {'b': 1}, 'c': 0}


def test_core_file():
assert 'temporary-directory' in dask.config.config

0 comments on commit b164b65

Please sign in to comment.