From 0248f65a0204eec1cb891130eba2f9b5e75e5d64 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 28 Jul 2024 06:26:33 +0000 Subject: [PATCH] **CI** Formatted code + Updated version number and documentation. [skip ci] --- graze/base.py | 5 ++--- setup.cfg | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/graze/base.py b/graze/base.py index e4fabb0..798451c 100644 --- a/graze/base.py +++ b/graze/base.py @@ -104,8 +104,7 @@ def __init__(self, rootdir=DFLT_GRAZE_DIR): @add_ipython_key_completions @wrap_kvs( - key_of_id=localpath_to_url, - id_of_key=url_to_localpath, + key_of_id=localpath_to_url, id_of_key=url_to_localpath, ) class LocalGrazed(LocalFiles): """LocalFiles using url as keys""" @@ -227,7 +226,7 @@ def _ensure_dirs_of_file_exists(filepath: str): def _write_to_file(contents, filepath, *, mode='wb'): with open(filepath, mode) as f: f.write(contents) - return filepath + return filepath def _read_file(filepath, *, mode='rb'): diff --git a/setup.cfg b/setup.cfg index d235c5a..9966d97 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = graze -version = 0.1.21 +version = 0.1.22 url = https://github.com/thorwhalen/graze platforms = any description_file = README.md