Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #212

Merged
merged 3 commits into from
Jul 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
repos:

- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.3.0
hooks:
- id: black

- repo: https://github.com/pycqa/isort
rev: 5.11.5
rev: 5.12.0
hooks:
- id: isort

Expand All @@ -16,7 +16,7 @@ repos:
- id: flake8

- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
rev: v2.2.5
hooks:
- id: codespell

Expand Down
1 change: 0 additions & 1 deletion doc/source/_ext/autodocclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ def add_directive_header(self, sig: str) -> None:
self.add_line(" ", self.get_sourcename())

def add_content(self, more_content: Optional[StringList]) -> None:

super().add_content(more_content)

source_name = self.get_sourcename()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,6 @@ def _get_windows_id(
session_id: Optional[str] = "",
windows_id: Optional[List[str]] = [],
) -> List[str]:

return [
window_id
for window_id in [
Expand Down
1 change: 0 additions & 1 deletion src/ansys/fluent/visualization/post_data_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ def _fetch_pathlines_data(self, obj, *args, **kwargs):
return pathlines_data

def _fetch_vector_data(self, obj, *args, **kwargs):

if not obj.surfaces_list():
raise RuntimeError("Vector definition is incomplete.")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,6 @@ def _display_mesh(self, obj, plotter: Union[BackgroundPlotter, pv.Plotter]):

def _get_refresh_for_plotter(self, window: "PyVistaWindow"):
def refresh():

with PyVistaWindowsManager._condition:
plotter = window.plotter
if window.close:
Expand Down
4 changes: 0 additions & 4 deletions tests/test_post.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ def test_graphics_operations():


def test_contour_object():

pyvista_graphics = Graphics(session=None)
contour1 = pyvista_graphics.Contours["contour-1"]
field_info = contour1._api_helper.field_info()
Expand Down Expand Up @@ -352,7 +351,6 @@ def test_contour_object():


def test_vector_object():

pyvista_graphics = Graphics(session=None)
vector1 = pyvista_graphics.Vectors["contour-1"]
field_info = vector1._api_helper.field_info()
Expand Down Expand Up @@ -391,7 +389,6 @@ def test_vector_object():


def test_surface_object():

pyvista_graphics = Graphics(session=None)
surf1 = pyvista_graphics.Surfaces["surf-1"]
field_info = surf1._api_helper.field_info()
Expand Down Expand Up @@ -465,7 +462,6 @@ def test_create_plot_objects():


def test_xyplot_object():

matplotlib_plots = Plots(session=None, post_api_helper=MockAPIHelper)
p1 = matplotlib_plots.XYPlots["p-1"]
field_info = p1._api_helper.field_info()
Expand Down