Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #52

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: v4.6.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.6.4
hooks:
# Run the linter.
- id: ruff
Expand Down
8 changes: 4 additions & 4 deletions micromagnetictests/calculatortests/info_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def test_info_file(calculator):
assert "driver" in info

assert info["drive_number"] == 0
assert re.findall(r"\d{4}-\d{2}-\d{2}", info["date"]) is not []
assert re.findall(r"\d{2}:\d{2}-\d{2}", info["time"]) is not []
assert re.findall(r"\d{4}-\d{2}-\d{2}", info["date"]) != []
assert re.findall(r"\d{2}:\d{2}-\d{2}", info["time"]) != []
assert info["driver"] == "TimeDriver"
assert info["t"] == 25e-12
assert info["n"] == 10
Expand All @@ -64,8 +64,8 @@ def test_info_file(calculator):
assert "driver" in info

assert info["drive_number"] == 1
assert re.findall(r"\d{4}-\d{2}-\d{2}", info["date"]) is not []
assert re.findall(r"\d{2}:\d{2}-\d{2}", info["time"]) is not []
assert re.findall(r"\d{4}-\d{2}-\d{2}", info["date"]) != []
assert re.findall(r"\d{2}:\d{2}-\d{2}", info["time"]) != []
assert info["driver"] == "MinDriver"

calculator.delete(system)
Loading