From d8e69857d3ae345fddef276bb6c20f5b3a306330 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 28 Nov 2023 11:10:54 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- conftest.py | 8 ++++---- tests/test_parsers.py | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/conftest.py b/conftest.py index b12a035..52b4034 100644 --- a/conftest.py +++ b/conftest.py @@ -1031,7 +1031,7 @@ def generate_singlefile_data(): def _generate_singlefile_data( computer: orm.Computer, label: str = "restartfile", - entry_point_name: Optional[str] = None, + entry_point_name: str | None = None, ): entry_point = format_entry_point_string("aiida.calculations", entry_point_name) @@ -1060,7 +1060,7 @@ def generate_lammps_trajectory(): def _generate_lammps_trajectory( computer: orm.Computer, label: str = "trajectory", - entry_point_name: Optional[str] = None, + entry_point_name: str | None = None, ): entry_point = format_entry_point_string("aiida.calculations", entry_point_name) @@ -1091,8 +1091,8 @@ def generate_lammps_results(): def _generate_lammps_results( computer: orm.Computer, label: str = "results", - entry_point_name: Optional[str] = None, - data: Optional[dict] = None, + entry_point_name: str | None = None, + data: dict | None = None, ): entry_point = format_entry_point_string("aiida.calculations", entry_point_name) diff --git a/tests/test_parsers.py b/tests/test_parsers.py index 31e3518..74d073a 100644 --- a/tests/test_parsers.py +++ b/tests/test_parsers.py @@ -4,6 +4,7 @@ import os from aiida.plugins import ParserFactory + from aiida_lammps.parsers.parse_raw import parse_final_data, parse_outputfile from .utils import TEST_DIR