From 2c3c03fde4038fc18827d108be3e4fc95973725b Mon Sep 17 00:00:00 2001 From: Jan Domanski Date: Sun, 19 Nov 2023 14:44:36 +0000 Subject: [PATCH] run linter --- gromacs/config.py | 1 + tests/datafiles.py | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/gromacs/config.py b/gromacs/config.py index 8fbaedb5..5999a284 100644 --- a/gromacs/config.py +++ b/gromacs/config.py @@ -312,6 +312,7 @@ def _generate_template_dict(dirname): All template filenames are stored in config.templates. """ import importlib_resources + resource_path = importlib_resources.files("gromacs.config").joinpath(dirname) return { path.name: str(path.absolute()) diff --git a/tests/datafiles.py b/tests/datafiles.py index 19067f60..8fc178b7 100644 --- a/tests/datafiles.py +++ b/tests/datafiles.py @@ -25,8 +25,5 @@ def datafile(name): file_manager = ExitStack() atexit.register(file_manager.close) ref = importlib_resources.files("tests.data") / name - path = file_manager.enter_context( - importlib_resources.as_file(ref) - ) + path = file_manager.enter_context(importlib_resources.as_file(ref)) return path -