Skip to content

Commit

Permalink
Bumped ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
atomprobe-tc committed Jan 27, 2025
1 parent d032dd4 commit 66023fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
- id: ruff-format
6 changes: 3 additions & 3 deletions src/pynxtools_apm/utils/generate_synthetic_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 66023fa

Please sign in to comment.