diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 34799a4..cab6a90 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/mumax3c/scripts/driver.py b/mumax3c/scripts/driver.py index a4c1ccc..9303b62 100644 --- a/mumax3c/scripts/driver.py +++ b/mumax3c/scripts/driver.py @@ -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): @@ -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 += "}"