Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#181)
Browse files Browse the repository at this point in the history
updates:
- [github.com/psf/black: 23.1.0 → 23.3.0](psf/black@23.1.0...23.3.0)
- [github.com/codespell-project/codespell: v2.2.4 → v2.2.5](codespell-project/codespell@v2.2.4...v2.2.5)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Mar 27, 2024
1 parent b3b1bf1 commit 62cec14
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 25 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
repos:

- repo: https://github.com/psf/black
rev: 23.1.0
rev: 24.3.0
hooks:
- id: black

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

- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 7.0.0
hooks:
- id: flake8

- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
rev: v2.2.6
hooks:
- id: codespell

Expand Down
1 change: 1 addition & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Sphinx documentation configuration file."""

from datetime import datetime
import os
import platform
Expand Down
1 change: 1 addition & 0 deletions doc/validate_png.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Removes invalid PNGs (probably GIF)
"""

from glob import glob
import os

Expand Down
25 changes: 13 additions & 12 deletions examples/00-parametric/parametric_static_mixer_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
static mixer.
"""

from pathlib import Path

import ansys.fluent.core as pyfluent
Expand Down Expand Up @@ -81,23 +82,23 @@
# using report definitions.

solver_session.solution.report_definitions.surface["outlet-temp-avg"] = {}
solver_session.solution.report_definitions.surface[
"outlet-temp-avg"
].report_type = "surface-areaavg"
solver_session.solution.report_definitions.surface[
"outlet-temp-avg"
].field = "temperature"
solver_session.solution.report_definitions.surface["outlet-temp-avg"].report_type = (
"surface-areaavg"
)
solver_session.solution.report_definitions.surface["outlet-temp-avg"].field = (
"temperature"
)
solver_session.solution.report_definitions.surface["outlet-temp-avg"].surface_names = [
"outlet"
]

solver_session.solution.report_definitions.surface["outlet-vel-avg"] = {}
solver_session.solution.report_definitions.surface[
"outlet-vel-avg"
].report_type = "surface-areaavg"
solver_session.solution.report_definitions.surface[
"outlet-vel-avg"
].field = "velocity-magnitude"
solver_session.solution.report_definitions.surface["outlet-vel-avg"].report_type = (
"surface-areaavg"
)
solver_session.solution.report_definitions.surface["outlet-vel-avg"].field = (
"velocity-magnitude"
)
solver_session.solution.report_definitions.surface["outlet-vel-avg"].surface_names = [
"outlet"
]
Expand Down
1 change: 1 addition & 0 deletions src/ansys/fluent/parametric/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
>>> study2 = session1.new_study()
>>> session2 = ParametricSession(project_filepath="nozzle_para_named.flprj")
"""

import logging
from pathlib import Path, PurePosixPath, PureWindowsPath
import tempfile
Expand Down
1 change: 1 addition & 0 deletions tests/test_local_parametric_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
TODO
"""

import ansys.fluent.core as pyfluent
from ansys.fluent.core import examples
import pytest
Expand Down
18 changes: 9 additions & 9 deletions tests/test_parametric_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,20 +89,20 @@ def test_parametric_workflow(monkeypatch: pytest.MonkeyPatch):
solver_session.solution.report_definitions.surface[
"outlet-temp-avg"
].report_type = "surface-areaavg"
solver_session.solution.report_definitions.surface[
"outlet-temp-avg"
].field = "temperature"
solver_session.solution.report_definitions.surface["outlet-temp-avg"].field = (
"temperature"
)
solver_session.solution.report_definitions.surface[
"outlet-temp-avg"
].surface_names = ["outlet"]

solver_session.solution.report_definitions.surface["outlet-vel-avg"] = {}
solver_session.solution.report_definitions.surface[
"outlet-vel-avg"
].report_type = "surface-areaavg"
solver_session.solution.report_definitions.surface[
"outlet-vel-avg"
].field = "velocity-magnitude"
solver_session.solution.report_definitions.surface["outlet-vel-avg"].report_type = (
"surface-areaavg"
)
solver_session.solution.report_definitions.surface["outlet-vel-avg"].field = (
"velocity-magnitude"
)
solver_session.solution.report_definitions.surface[
"outlet-vel-avg"
].surface_names = ["outlet"]
Expand Down

0 comments on commit 62cec14

Please sign in to comment.