diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5bbbee926..fa1749bae 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ repos: - repo: https://github.com/psf/black - rev: 23.12.1 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!! + rev: 24.1.1 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!! hooks: - id: black args: [ @@ -14,7 +14,7 @@ repos: rev: 1.16.0 hooks: - id: blacken-docs - additional_dependencies: [black==23.12.1] + additional_dependencies: [black==24.1.1] - repo: https://github.com/pycqa/isort rev: 5.13.2 diff --git a/doc/source/conf.py b/doc/source/conf.py index aeb1cd9bf..d23c3a09d 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -1,4 +1,5 @@ """Sphinx documentation configuration file for the pyansys developer's guide.""" + from datetime import datetime import os diff --git a/doc/source/doc-style/code/required_conf.py b/doc/source/doc-style/code/required_conf.py index 48d2e4ec5..ddb92f04a 100644 --- a/doc/source/doc-style/code/required_conf.py +++ b/doc/source/doc-style/code/required_conf.py @@ -1,4 +1,5 @@ """Sphinx documentation configuration file.""" + from datetime import datetime from ansys_sphinx_theme import pyansys_logo_black as logo diff --git a/examples/pyvista_example.py b/examples/pyvista_example.py index 92f77421d..019327db8 100644 --- a/examples/pyvista_example.py +++ b/examples/pyvista_example.py @@ -28,6 +28,7 @@ After this preamble is complete, the first code block begins. This is where you typically set up your imports. """ + import pyvista as pv ###############################################################################