diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a303e24..493580e 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.2 + rev: v0.12.0 hooks: # Run the linter. - id: ruff diff --git a/examples/field-operations2.ipynb b/examples/field-operations2.ipynb index 13b1a0c..143a33b 100644 --- a/examples/field-operations2.ipynb +++ b/examples/field-operations2.ipynb @@ -213,7 +213,7 @@ "Emc = mc.compute(system.energy.zeeman.energy, system)\n", "print(f\"df: {Edf}\")\n", "print(f\"mc: {Emc}\")\n", - "print(f\"rerr: {abs(Edf-Emc)/Edf * 100} %\")" + "print(f\"rerr: {abs(Edf - Emc) / Edf * 100} %\")" ] }, { @@ -334,7 +334,7 @@ "Emc = mc.compute(system.energy.uniaxialanisotropy.energy, system)\n", "print(f\"df: {Edf}\")\n", "print(f\"mc: {Emc}\")\n", - "print(f\"rerr: {abs(Edf-Emc)/Edf * 100} %\")" + "print(f\"rerr: {abs(Edf - Emc) / Edf * 100} %\")" ] }, { @@ -453,7 +453,7 @@ "Emc = mc.compute(system.energy.exchange.energy, system)\n", "print(f\"df: {Edf}\")\n", "print(f\"mc: {Emc}\")\n", - "print(f\"rerr: {abs(Edf-Emc)/Edf * 100} %\")" + "print(f\"rerr: {abs(Edf - Emc) / Edf * 100} %\")" ] }, { @@ -572,7 +572,7 @@ "Emc = mc.compute(system.energy.dmi.energy, system)\n", "print(f\"df: {Edf}\")\n", "print(f\"mc: {Emc}\")\n", - "print(f\"rerr: {abs(Edf-Emc)/Edf * 100} %\")" + "print(f\"rerr: {abs(Edf - Emc) / Edf * 100} %\")" ] }, {