Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#207)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.11.0 → 24.2.0](psf/black@23.11.0...24.2.0)
- [github.com/pycqa/isort: 5.13.0 → 5.13.2](PyCQA/isort@5.13.0...5.13.2)
- [github.com/PyCQA/flake8: 6.1.0 → 7.0.0](PyCQA/flake8@6.1.0...7.0.0)
- [github.com/asottile/pyupgrade: v3.15.0 → v3.15.1](asottile/pyupgrade@v3.15.0...v3.15.1)
- [github.com/python-jsonschema/check-jsonschema: 0.27.3 → 0.28.0](python-jsonschema/check-jsonschema@0.27.3...0.28.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Tetsuo Koyama <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and tkoyama010 authored Feb 23, 2024
1 parent 0603998 commit e79ee39
Show file tree
Hide file tree
Showing 34 changed files with 38 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
repos:
- repo: https://github.com/psf/black
rev: 23.11.0
rev: 24.2.0
hooks:
- id: black

- repo: https://github.com/pycqa/isort
rev: 5.13.0
rev: 5.13.2
hooks:
- id: isort

- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
rev: 7.0.0
hooks:
- id: flake8
additional_dependencies: [
Expand All @@ -29,7 +29,7 @@ repos:
]

- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.15.1
hooks:
- id: pyupgrade
args: [--py37-plus, --keep-runtime-typing]
Expand All @@ -48,6 +48,6 @@ repos:
- id: end-of-file-fixer

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.27.3
rev: 0.28.0
hooks:
- id: check-github-workflows
1 change: 1 addition & 0 deletions doc/source/make_external_gallery.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""A helper script to generate the external examples gallery."""

from io import StringIO
import os
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions tutorial/00_intro/a_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
This is the "Hello, world!" of PyVista.
"""

import pyvista as pv

###############################################################################
Expand Down
1 change: 1 addition & 0 deletions tutorial/00_jupyter/jupyter.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Become familiar with PyVista Jupyter backend.
"""

import pyvista as pv

# Set/enable the backed
Expand Down
1 change: 1 addition & 0 deletions tutorial/02_mesh/a_lesson_mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
to try out!
"""

# sphinx_gallery_thumbnail_number = 2
import numpy as np
import pyvista as pv
Expand Down
1 change: 1 addition & 0 deletions tutorial/02_mesh/exercises/e_read-file.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Read a dataset from a known file type.
"""

###############################################################################
# We try to make loading a mesh as easy as possible - if your data is in one
# of the many supported file formats, simply use :func:`pyvista.read` to
Expand Down
1 change: 1 addition & 0 deletions tutorial/02_mesh/solutions/e_read-file.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Read a dataset from a known file type.
"""

###############################################################################
# We try to make loading a mesh as easy as possible - if your data is in one
# of the many supported file formats, simply use :func:`pyvista.read` to
Expand Down
1 change: 1 addition & 0 deletions tutorial/03_figures/a_lesson_figures.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
~~~~~~~~~~~~~~~
"""

import pyvista as pv
from pyvista import examples

Expand Down
1 change: 1 addition & 0 deletions tutorial/03_figures/b_shading.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Comparison of default, flat shading vs. smooth shading.
"""

# sphinx_gallery_thumbnail_number = 4
import pyvista as pv
from pyvista import examples
Expand Down
1 change: 1 addition & 0 deletions tutorial/03_figures/bonus/e_labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Use string arrays in a point set to label points
"""

# sphinx_gallery_thumbnail_number = 3
import numpy as np
import pyvista as pv
Expand Down
1 change: 1 addition & 0 deletions tutorial/03_figures/c_geological-map.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Originally posted here: https://github.com/pyvista/pyvista-support/issues/14
"""

# sphinx_gallery_thumbnail_number = 2
import os
import tempfile
Expand Down
1 change: 1 addition & 0 deletions tutorial/03_figures/exercises/a_display_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Take a look at the different display options offered by the ``add_mesh`` method.
"""

import pyvista as pv
from pyvista import examples

Expand Down
1 change: 1 addition & 0 deletions tutorial/03_figures/exercises/b_lighting_mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
See the ``add_mesh`` docs for lighting options:
https://docs.pyvista.org/api/plotting/_autosummary/pyvista.Plotter.add_mesh.html
"""

# sphinx_gallery_thumbnail_number = 4
import pyvista as pv
from pyvista import examples
Expand Down
1 change: 1 addition & 0 deletions tutorial/03_figures/exercises/c_edl.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
.. _this blog post: https://blog.kitware.com/eye-dome-lighting-a-non-photorealistic-shading-technique/
"""

###############################################################################

# sphinx_gallery_thumbnail_number = 1
Expand Down
1 change: 1 addition & 0 deletions tutorial/03_figures/solutions/a_display_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Take a look at the different display options offered by the ``add_mesh`` method.
"""

import pyvista as pv
from pyvista import examples

Expand Down
1 change: 1 addition & 0 deletions tutorial/03_figures/solutions/b_lighting_mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
See the ``add_mesh`` docs for lighting options:
https://docs.pyvista.org/api/plotting/_autosummary/pyvista.Plotter.add_mesh.html
"""

# sphinx_gallery_thumbnail_number = 4
import pyvista as pv
from pyvista import examples
Expand Down
1 change: 1 addition & 0 deletions tutorial/03_figures/solutions/c_edl.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
.. _this blog post: https://blog.kitware.com/eye-dome-lighting-a-non-photorealistic-shading-technique/
"""

###############################################################################

# sphinx_gallery_thumbnail_number = 1
Expand Down
1 change: 1 addition & 0 deletions tutorial/04_filters/exercises/b_clipping.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Clip/cut any dataset using using planes or boxes.
"""

# sphinx_gallery_thumbnail_number = 2
import pyvista as pv
from pyvista import examples
Expand Down
1 change: 1 addition & 0 deletions tutorial/04_filters/exercises/d_contouring.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
3D meshes can have 2D iso-surfaces of a scalar field extracted and 2D surface
meshes can have 1D iso-lines of a scalar field extracted.
"""

import pyvista as pv
from pyvista import examples

Expand Down
1 change: 1 addition & 0 deletions tutorial/04_filters/exercises/e_glyphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Use vectors in a dataset to plot and orient glyphs/geometric objects.
"""

import numpy as np
import pyvista as pv
from pyvista import examples
Expand Down
1 change: 1 addition & 0 deletions tutorial/04_filters/solutions/b_clipping.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Clip/cut any dataset using using planes or boxes.
"""

# sphinx_gallery_thumbnail_number = 2
import pyvista as pv
from pyvista import examples
Expand Down
1 change: 1 addition & 0 deletions tutorial/04_filters/solutions/d_contouring.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
3D meshes can have 2D iso-surfaces of a scalar field extracted and 2D surface
meshes can have 1D iso-lines of a scalar field extracted.
"""

import numpy as np
import pyvista as pv
from pyvista import examples
Expand Down
1 change: 1 addition & 0 deletions tutorial/04_filters/solutions/e_glyphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Use vectors in a dataset to plot and orient glyphs/geometric objects.
"""

import numpy as np
import pyvista as pv
from pyvista import examples
Expand Down
1 change: 1 addition & 0 deletions tutorial/06_vtk/b_create_vtk.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
This exercise walks through the creation of a few different types of VTK datasets.
"""

import numpy as np
import pyvista as pv
import vtk
Expand Down
1 change: 1 addition & 0 deletions tutorial/08_widgets/b_checkbox-widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
See :func:`pyvista.Plotter.add_checkbox_button_widget` for more details.
"""

# sphinx_gallery_thumbnail_number = 2
import pyvista as pv

Expand Down
1 change: 1 addition & 0 deletions tutorial/08_widgets/d_multi-slider-widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
mesh-generating/altering code.
"""

import pyvista as pv


Expand Down
1 change: 1 addition & 0 deletions tutorial/08_widgets/e_plane-widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
Let's use a plane to clip a mesh:
"""

# sphinx_gallery_thumbnail_number = 2
import pyvista as pv
from pyvista import examples
Expand Down
1 change: 1 addition & 0 deletions tutorial/08_widgets/f_slider-bar-widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
This is one of the most versatile widgets as it can control a value that can
be used for just about anything.
"""

# sphinx_gallery_thumbnail_number = 1

##############################################################################
Expand Down
1 change: 1 addition & 0 deletions tutorial/08_widgets/g_sphere-widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
Let's look at a few use cases that all update a surface mesh.
"""

# sphinx_gallery_thumbnail_number = 3

##############################################################################
Expand Down
1 change: 1 addition & 0 deletions tutorial/08_widgets/h_spline-widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
:func:`pyvista.DataSetFilters.slice_along_line` filter named
:func:`pyvista.Plotter.add_mesh_slice_spline`.
"""

import numpy as np
import pyvista as pv

Expand Down
1 change: 1 addition & 0 deletions tutorial/09_trame/a_trame_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
new Trame application with PyVista.
"""

import pyvista as pv
from pyvista import examples
from pyvista.trame.ui import plotter_ui
Expand Down
1 change: 1 addition & 0 deletions tutorial/09_trame/b_trame_actor_color.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
the actor.
"""

import pyvista as pv
from pyvista.plotting.colors import hexcolors
from pyvista.trame.ui import plotter_ui
Expand Down
1 change: 1 addition & 0 deletions tutorial/09_trame/d_trame_scalar_range.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Extending our simple example to control the color limits of the mapped scalars.
"""

import pyvista as pv
from pyvista.trame.ui import plotter_ui
from trame.app import get_server
Expand Down
1 change: 1 addition & 0 deletions tutorial/09_trame/f_trame_open_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
An example of opening a mesh file from the browser and viewing it with PyVista.
"""

import tempfile

import pyvista as pv
Expand Down

1 comment on commit e79ee39

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.