diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2591f94..5b14975 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 25.1.0 hooks: - id: black name: black @@ -13,7 +13,7 @@ repos: types_or: [python, pyi] - repo: https://github.com/pycqa/flake8 - rev: 7.0.0 + rev: 7.1.1 hooks: - id: flake8 additional_dependencies: @@ -23,18 +23,18 @@ repos: args: [--max-line-length=88] - repo: https://github.com/asottile/pyupgrade - rev: v3.15.0 + rev: v3.19.1 hooks: - id: pyupgrade args: [--py310-plus] - repo: https://github.com/pycqa/isort - rev: 5.13.2 + rev: 6.0.0 hooks: - id: isort - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v5.0.0 hooks: - id: check-builtin-literals - id: check-added-large-files @@ -56,7 +56,7 @@ repos: ) - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.8.0 + rev: v1.15.0 hooks: - id: mypy language_version: python3.12 diff --git a/heat/heat.py b/heat/heat.py index 3d4496d..5351e70 100644 --- a/heat/heat.py +++ b/heat/heat.py @@ -1,4 +1,5 @@ """The 2D heat model.""" + from __future__ import annotations from io import TextIOBase @@ -64,7 +65,6 @@ def solve_2d( class Heat: - """Solve the Heat equation on a grid. Examples