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

Merged
merged 4 commits into from
Mar 27, 2024
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
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
Loading