Skip to content

Commit

Permalink
Merge pull request #89 from ubermag/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
lang-m authored Feb 3, 2025
2 parents 4d2d196 + 98e3465 commit 9ca9893
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ exclude: 'dev'

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
- id: check-merge-conflict # checks for files that contain merge conflict strings
- id: check-toml # checks toml files for parseable syntax
- id: debug-statements # checks for debugger imports and py37+ `breakpoint()` calls in python source

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.4
rev: v0.9.3
hooks:
# Run the linter.
- id: ruff
Expand Down
4 changes: 2 additions & 2 deletions mumax3c/scripts/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def driver_script(driver, system, compute=None, ovf_format="bin4", **kwargs):
if not gamma0:
mx3 += "doprecess = false\n"
else:
mx3 += f"gammaLL = {gamma0/mm.consts.mu0}\n"
mx3 += f"gammaLL = {gamma0 / mm.consts.mu0}\n"
mx3 += "doprecess = true\n"

if system.dynamics.get(type=mm.ZhangLi):
Expand Down Expand Up @@ -105,7 +105,7 @@ def driver_script(driver, system, compute=None, ovf_format="bin4", **kwargs):
t, n = kwargs["t"], kwargs["n"]

mx3 += f"for snap_counter:=0; snap_counter<{n}; snap_counter++{{\n"
mx3 += f" run({t/n})\n"
mx3 += f" run({t / n})\n"
mx3 += " save(m_full)\n"
mx3 += " tablesave()\n"
mx3 += "}"
Expand Down

0 comments on commit 9ca9893

Please sign in to comment.