From 66023fa2c5838b7d786cb9f6064be3f2b7a2550c Mon Sep 17 00:00:00 2001 From: mkuehbach Date: Mon, 27 Jan 2025 13:25:59 +0100 Subject: [PATCH] Bumped ruff --- .pre-commit-config.yaml | 4 ++-- src/pynxtools_apm/utils/generate_synthetic_data.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index eba282b..c06158d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,9 +1,9 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.8.3 + rev: v0.9.3 hooks: # Run the linter. - id: ruff # Run the formatter. - - id: ruff-format \ No newline at end of file + - id: ruff-format diff --git a/src/pynxtools_apm/utils/generate_synthetic_data.py b/src/pynxtools_apm/utils/generate_synthetic_data.py index 0e12cc9..1caa57b 100644 --- a/src/pynxtools_apm/utils/generate_synthetic_data.py +++ b/src/pynxtools_apm/utils/generate_synthetic_data.py @@ -248,9 +248,9 @@ def place_atoms_from_periodic_table(self): for idx in self.nrm_composition: accept_reject.append(idx[3]) accept_reject = np.cumsum(accept_reject) - assert ( - self.xyz != [] - ), "self.xyz must not be an empty dataset, create a geometry first!" + assert self.xyz != [], ( + "self.xyz must not be an empty dataset, create a geometry first!" + ) # print("Accept/reject sampling m/q values for " # + str(np.shape(self.xyz)[0]) + " ions")