From be69f00bcabbe6ada3feabbb601d9e2d20cb5ff3 Mon Sep 17 00:00:00 2001 From: Tetsuo Koyama Date: Sat, 23 Dec 2023 18:45:40 +0900 Subject: [PATCH] Add `blackdoc` to `.pre-commit-config.yaml` (#7) --- .pre-commit-config.yaml | 5 +++++ pvgmsh/__init__.py | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 37f9fc4a..ba6fc36e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,3 +6,8 @@ repos: rev: 23.3.0 hooks: - id: black +- repo: https://github.com/keewis/blackdoc + rev: v0.3.9 + hooks: + - id: blackdoc + files: '\.py$' diff --git a/pvgmsh/__init__.py b/pvgmsh/__init__.py index bea47df8..85e6ee6e 100644 --- a/pvgmsh/__init__.py +++ b/pvgmsh/__init__.py @@ -22,7 +22,8 @@ def delaunay_2d(poly_data, size=1e-2): Examples -------- - This example is inspired by `Gmsh Python tutorial 1 `_. + This example is inspired by Gmsh Python tutorial 1. + See https://gmsh.info/doc/texinfo/gmsh.html#t1 . >>> import pvgmsh >>> import pyvista as pv