Skip to content

Commit

Permalink
Fix bugs uncovered by flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
samuell committed Jul 4, 2024
1 parent 1cbcc50 commit bdcd209
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion microSALT/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
sys.exit(-1)


def set_cli_config(config):
@click.pass_context
def set_cli_config(ctx, config):
if config != "":
if os.path.exists(config):
try:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def test_paths(exp_config):
for entry in preset_config.keys():
if entry != '_comment':
if isinstance(preset_config[entry], str) and '/' in preset_config[entry] and entry not in ['database', 'genologics']:
unmade_fldr = preset_config[entry][thing]
unmade_fldr = preset_config[entry]
assert (pathlib.Path(unmade_fldr).exists())

#level two
Expand Down

0 comments on commit bdcd209

Please sign in to comment.