Skip to content

Commit 66f7b91

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent cc4824a commit 66f7b91

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/tristan/diagnostics/check_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def setup_logging(wdir, filestem):
6565

6666
def main(args):
6767
filepath = Path(args.visitpath).expanduser().resolve()
68-
base = args.filename + f"_{6*'[0-9]'}.h5"
68+
base = args.filename + f"_{6 * '[0-9]'}.h5"
6969

7070
if args.output:
7171
savedir = Path(args.output).expanduser().resolve()

src/tristan/diagnostics/check_valid_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def event_timestamp_check(tristanlist):
112112

113113
def main(args):
114114
filepath = Path(args.visitpath).expanduser().resolve()
115-
base = args.filename + f"_{6*'[0-9]'}.h5"
115+
base = args.filename + f"_{6 * '[0-9]'}.h5"
116116

117117
filename_template = filepath / base
118118
file_list = get_full_file_list(filename_template)

src/tristan/diagnostics/find_trigger_intervals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def log_only_requested_trigger_info(res: list[dict], trigger_request: list[str])
369369

370370
def main(args):
371371
filepath = Path(args.visitpath).expanduser().resolve()
372-
base = args.filename + f"_{6*'[0-9]'}.h5"
372+
base = args.filename + f"_{6 * '[0-9]'}.h5"
373373

374374
# Current working directory
375375
if args.output:

tests/test_command_line.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def test_input_file_action():
165165
namespace = argparse.Namespace()
166166
directory = "some/dummy/path/to"
167167
stem = "file_name"
168-
action(argparse.ArgumentParser(), namespace, f"{directory}" f"/{stem}_meta.h5")
168+
action(argparse.ArgumentParser(), namespace, f"{directory}/{stem}_meta.h5")
169169
assert namespace.data_dir == Path(directory).resolve()
170170
assert namespace.stem == stem
171171

0 commit comments

Comments
 (0)