From 50240f20945ddd091fc95efec13007d03e6f5eca Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Jul 2024 21:33:39 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 23.12.1 → 24.4.2](https://github.com/psf/black/compare/23.12.1...24.4.2) - [github.com/PyCQA/flake8: 6.1.0 → 7.1.0](https://github.com/PyCQA/flake8/compare/6.1.0...7.1.0) - [github.com/codespell-project/codespell: v2.2.6 → v2.3.0](https://github.com/codespell-project/codespell/compare/v2.2.6...v2.3.0) - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0) - [github.com/python-jsonschema/check-jsonschema: 0.27.3 → 0.28.6](https://github.com/python-jsonschema/check-jsonschema/compare/0.27.3...0.28.6) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 34f685c..fc2cfd9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: - id: isort - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.4.2 hooks: - id: black args: @@ -26,12 +26,12 @@ repos: exclude: pyvista/plotting/charts.py - repo: https://github.com/PyCQA/flake8 - rev: 6.1.0 + rev: 7.1.0 hooks: - id: flake8 - repo: https://github.com/codespell-project/codespell - rev: v2.2.6 + rev: v2.3.0 hooks: - id: codespell args: ["--toml", "pyproject.toml"] @@ -45,7 +45,7 @@ repos: exclude: "examples/" - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: check-merge-conflict - id: debug-statements @@ -53,6 +53,6 @@ repos: args: [--branch, main] - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.27.3 + rev: 0.28.6 hooks: - id: check-github-workflows From 4d02821c033aca54634f71631900c82810d69b3a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Jul 2024 21:36:25 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- doc/conf.py | 1 + examples/cow.py | 1 + setup.py | 1 + tests/test_background_mesh.py | 1 + tetgen/__init__.py | 1 + tetgen/pytetgen.py | 1 + 6 files changed, 6 insertions(+) diff --git a/doc/conf.py b/doc/conf.py index a462707..a67227a 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -1,4 +1,5 @@ """Configuration file for the Sphinx documentation builder.""" + # # This file does only contain a selection of the most common options. For a # full list see the documentation: diff --git a/examples/cow.py b/examples/cow.py index fe6a338..a93e265 100644 --- a/examples/cow.py +++ b/examples/cow.py @@ -4,6 +4,7 @@ Tetrahedralize a cow mesh. """ + # sphinx_gallery_thumbnail_number = 3 import numpy as np import pyvista as pv diff --git a/setup.py b/setup.py index 3104860..e5048fd 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ """Setup for tetgen.""" + from io import open as io_open import os diff --git a/tests/test_background_mesh.py b/tests/test_background_mesh.py index 8823809..ffa8c6c 100644 --- a/tests/test_background_mesh.py +++ b/tests/test_background_mesh.py @@ -1,4 +1,5 @@ """Test the mesh resizing feature of tetgen with sizing function.""" + from pathlib import Path import tempfile diff --git a/tetgen/__init__.py b/tetgen/__init__.py index af79c27..2276a7c 100644 --- a/tetgen/__init__.py +++ b/tetgen/__init__.py @@ -1,4 +1,5 @@ """Tetgen module.""" + from tetgen import _tetgen from tetgen._version import __version__ from tetgen.pytetgen import TetGen diff --git a/tetgen/pytetgen.py b/tetgen/pytetgen.py index 871f2f9..3c96532 100644 --- a/tetgen/pytetgen.py +++ b/tetgen/pytetgen.py @@ -1,4 +1,5 @@ """Python module to interface with wrapped TetGen C++ code.""" + import ctypes import logging