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 #16

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.5.0"
rev: "v5.0.0"
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -28,19 +28,19 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/psf/black
rev: "23.11.0"
rev: "24.10.0"
hooks:
- id: black
args: [--line-length=79]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
rev: v0.8.2
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]

- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
rev: v2.3.0
hooks:
- id: codespell
args: [-w]
Expand Down
1 change: 1 addition & 0 deletions feigen/_base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Base type of feigen
"""

from feigen import log


Expand Down
12 changes: 6 additions & 6 deletions feigen/bspline.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,9 @@ def __init__(self, uri, degree=None, ncoeffs=None): # noqa PLR0915

# plotter initialization constants
self._config["dim"] = 2 # 2D
self._config[
"n_subplots"
] = 3 # geometry, boundary condition, server response
self._config["n_subplots"] = (
3 # geometry, boundary condition, server response
)
self._config["geometry_plot"] = 0
self._config["bc_plot"] = 1
self._config["server_plot"] = 2
Expand Down Expand Up @@ -667,9 +667,9 @@ def _iganet_sync(self, evt): # noqa ARG002
eval_points = vedo.Points(np.vstack(geo_eval).T, c="white")
eval_point_ids = eval_points.labels("id", on="points", font="VTK")
self._state["server_plot_actors"]["evaluated_points"] = eval_points
self._state["server_plot_actors"][
"evaluated_point_ids"
] = eval_point_ids.c("grey")
self._state["server_plot_actors"]["evaluated_point_ids"] = (
eval_point_ids.c("grey")
)

# for some reason add won't work here
self.show(
Expand Down
1 change: 1 addition & 0 deletions feigen/comm.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Communication helpers.
"""

import uuid

from websockets.exceptions import ConnectionClosed
Expand Down
6 changes: 3 additions & 3 deletions feigen/jacobian_determinant.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ def __init__(self, spline=None): # noqa PLR0915

# plotter initialization constants
self._c["dim"] = 2 # 2D
self._c[
"n_subplots"
] = 2 # geometry, boundary condition, server response
self._c["n_subplots"] = (
2 # geometry, boundary condition, server response
)
self._c["geometry_plot"] = 0
self._c["server_plot"] = 1

Expand Down
6 changes: 3 additions & 3 deletions feigen/nurbs_weights.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ def __init__(

# plotter initialization constants
self._c["dim"] = 2 # 2D
self._c[
"n_subplots"
] = 2 # geometry, boundary condition, server response
self._c["n_subplots"] = (
2 # geometry, boundary condition, server response
)
self._c["geometry_plot"] = 0
self._c["server_plot"] = 1

Expand Down
6 changes: 3 additions & 3 deletions feigen/poisson2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,9 @@ def __init__(self, spline=None): # noqa PLR0915

# plotter initialization constants
self._c["dim"] = 2 # 2D
self._c[
"n_subplots"
] = 3 # geometry, boundary condition, server response
self._c["n_subplots"] = (
3 # geometry, boundary condition, server response
)
self._c["geometry_plot"] = 0
self._c["bc_plot"] = 1
self._c["server_plot"] = 2
Expand Down