Skip to content

Commit f5f72ce

Browse files
committed
Fix ci again
1 parent a0faf05 commit f5f72ce

File tree

6 files changed

+62
-18
lines changed

6 files changed

+62
-18
lines changed

src/ansys/fluent/core/launcher/container_launcher.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
>>> container_solver_session = container_solver_launcher()
3636
"""
3737

38-
import inspect
3938
import logging
4039
import os
4140
import time
@@ -67,7 +66,9 @@
6766
from ansys.fluent.core.utils.fluent_version import FluentVersion
6867

6968

70-
class ContainerArgsWithoutDryRun(TypedDict, total=False):
69+
class ContainerArgsWithoutDryRun(
70+
TypedDict, total=False
71+
): # pylint: disable=missing-class-docstring
7172
ui_mode: UIMode | str | None
7273
graphics_driver: (
7374
FluentWindowsGraphicsDriver | FluentLinuxGraphicsDriver | str | None
@@ -89,7 +90,9 @@ class ContainerArgsWithoutDryRun(TypedDict, total=False):
8990
use_podman_compose: bool | None
9091

9192

92-
class ContainerArgs(ContainerArgsWithoutDryRun, total=False):
93+
class ContainerArgs(
94+
ContainerArgsWithoutDryRun, total=False
95+
): # pylint: disable=missing-class-docstring
9396
dry_run: bool
9497

9598

src/ansys/fluent/core/launcher/launcher.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ def _version_to_dimension(old_arg_val):
129129
return None
130130

131131

132-
class LaunchFluentArgs(TypedDict, total=False):
132+
class LaunchFluentArgs(
133+
TypedDict, total=False
134+
): # pylint: disable=missing-class-docstring
133135
product_version: FluentVersion | str | float | int | None
134136
dimension: Dimension | int
135137
precision: Precision | str
@@ -160,7 +162,9 @@ class LaunchFluentArgs(TypedDict, total=False):
160162
use_podman_compose: bool
161163

162164

163-
class SlurmSchedulerOptions(TypedDict, total=False):
165+
class SlurmSchedulerOptions(
166+
TypedDict, total=False
167+
): # pylint: disable=missing-class-docstring
164168
scheduler: Required[Literal["slurm"]]
165169
scheduler_headnode: str
166170
scheduler_queue: str
@@ -174,34 +178,44 @@ def launch_fluent(
174178
mode: Literal[FluentMode.MESHING, "meshing"],
175179
**kwargs: Unpack[LaunchFluentArgs],
176180
) -> Meshing: ...
181+
182+
177183
@overload
178184
def launch_fluent(
179185
*,
180186
dry_run: Literal[False] = False,
181187
mode: Literal[FluentMode.PURE_MESHING, "pure_meshing"],
182188
**kwargs: Unpack[LaunchFluentArgs],
183189
) -> PureMeshing: ...
190+
191+
184192
@overload
185193
def launch_fluent(
186194
*,
187195
dry_run: Literal[False] = False,
188196
mode: Literal[FluentMode.SOLVER, "solver"] = FluentMode.SOLVER,
189197
**kwargs: Unpack[LaunchFluentArgs],
190198
) -> Solver: ...
199+
200+
191201
@overload
192202
def launch_fluent(
193203
*,
194204
dry_run: Literal[False] = False,
195205
mode: Literal[FluentMode.SOLVER_ICING, "solver_icing"],
196206
**kwargs: Unpack[LaunchFluentArgs],
197207
) -> SolverIcing: ...
208+
209+
198210
@overload
199211
def launch_fluent(
200212
*,
201213
dry_run: Literal[False] = False,
202214
mode: Literal[FluentMode.SOLVER_AERO, "solver_aero"] = ...,
203215
**kwargs: Unpack[LaunchFluentArgs],
204216
) -> SolverAero: ...
217+
218+
205219
@overload
206220
def launch_fluent(
207221
*,
@@ -210,6 +224,8 @@ def launch_fluent(
210224
mode: FluentMode | str = FluentMode.SOLVER,
211225
**kwargs: Unpack[LaunchFluentArgs],
212226
) -> SlurmFuture: ...
227+
228+
213229
@overload
214230
def launch_fluent(
215231
*,

src/ansys/fluent/core/launcher/pim_launcher.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
>>> pim_solver_session = pim_solver_launcher()
3636
"""
3737

38-
import inspect
3938
import logging
4039
import os
4140
from typing import Any, Dict, TypedDict
@@ -61,7 +60,9 @@
6160
import ansys.platform.instancemanagement as pypim
6261

6362

64-
class PIMArgsWithoutDryRun(TypedDict, total=False):
63+
class PIMArgsWithoutDryRun(
64+
TypedDict, total=False
65+
): # pylint: disable=missing-class-docstring
6566
ui_mode: UIMode | str | None
6667
graphics_driver: (
6768
FluentWindowsGraphicsDriver | FluentLinuxGraphicsDriver | str | None
@@ -79,11 +80,13 @@ class PIMArgsWithoutDryRun(TypedDict, total=False):
7980
file_transfer_service: Any | None
8081

8182

82-
class PIMArgs(PIMArgsWithoutDryRun, total=False):
83+
class PIMArgs(
84+
PIMArgsWithoutDryRun, total=False
85+
): # pylint: disable=missing-class-docstring
8386
dry_run: bool
8487

8588

86-
class PIMArgsWithMode(PIMArgs, total=False):
89+
class PIMArgsWithMode(PIMArgs, total=False): # pylint: disable=missing-class-docstring
8790
mode: FluentMode | str | None
8891

8992

src/ansys/fluent/core/launcher/standalone_launcher.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
>>> standalone_solver_session = standalone_solver_launcher()
3636
"""
3737

38-
import inspect
3938
import logging
4039
import os
4140
from pathlib import Path
@@ -76,9 +75,9 @@
7675
from ansys.fluent.core.utils.fluent_version import FluentVersion
7776

7877

79-
class StandaloneArgsWithoutDryRun(TypedDict, total=False):
80-
"""TypedDict for standalone launcher arguments without dry_run."""
81-
78+
class StandaloneArgsWithoutDryRun(
79+
TypedDict, total=False
80+
): # pylint: disable=missing-class-docstring
8281
product_version: FluentVersion | str | float | int | None
8382
dimension: Dimension | int
8483
precision: Precision | str
@@ -105,7 +104,9 @@ class StandaloneArgsWithoutDryRun(TypedDict, total=False):
105104
file_transfer_service: Any | None
106105

107106

108-
class StandaloneArgs(StandaloneArgsWithoutDryRun, total=False):
107+
class StandaloneArgs(
108+
StandaloneArgsWithoutDryRun, total=False
109+
): # pylint: disable=missing-class-docstring
109110
dry_run: bool | None
110111

111112

src/ansys/fluent/core/parametric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060

6161

6262
def convert_design_point_parameter_units(
63-
value: Dict[str, float | int | str]
63+
value: Dict[str, float | int | str],
6464
) -> Dict[str, float | int]:
6565
"""Convert design point parameter units."""
6666

src/ansys/fluent/core/session_utilities.py

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def from_install(
7777
dry_run: Literal[False] = False,
7878
**kwargs: Unpack[StandaloneArgsWithoutDryRun],
7979
) -> BaseSession: ...
80+
8081
@overload
8182
@classmethod
8283
def from_install(
@@ -87,7 +88,7 @@ def from_install(
8788
) -> tuple[str, str]: ...
8889

8990
@classmethod
90-
def from_install(
91+
def from_install( # pylint: disable=missing-param-doc
9192
cls,
9293
*,
9394
dry_run: bool = False,
@@ -182,6 +183,7 @@ def from_container(
182183
dry_run: Literal[False] = False,
183184
**kwargs: Unpack[ContainerArgsWithoutDryRun],
184185
) -> BaseSession: ...
186+
185187
@overload
186188
@classmethod
187189
def from_container(
@@ -192,7 +194,7 @@ def from_container(
192194
) -> dict[str, Any]: ...
193195

194196
@classmethod
195-
def from_container(
197+
def from_container( # pylint: disable=missing-param-doc
196198
cls,
197199
*,
198200
dry_run: bool = False,
@@ -277,6 +279,7 @@ def from_pim(
277279
dry_run: Literal[False] = False,
278280
**kwargs: Unpack[PIMArgsWithoutDryRun],
279281
) -> BaseSession: ...
282+
280283
@overload
281284
@classmethod
282285
def from_pim(
@@ -287,7 +290,7 @@ def from_pim(
287290
) -> dict[str, Any]: ...
288291

289292
@classmethod
290-
def from_pim(
293+
def from_pim( # pylint: disable=missing-param-doc
291294
cls,
292295
*,
293296
dry_run: bool = False,
@@ -425,6 +428,7 @@ def from_install(
425428
dry_run: Literal[False] = False,
426429
**kwargs: Unpack[LaunchFluentArgs],
427430
) -> session_meshing.Meshing: ...
431+
428432
@overload
429433
@classmethod
430434
def from_install(
@@ -442,6 +446,7 @@ def from_container(
442446
dry_run: Literal[False] = False,
443447
**kwargs: Unpack[ContainerArgsWithoutDryRun],
444448
) -> session_meshing.Meshing: ...
449+
445450
@overload
446451
@classmethod
447452
def from_container(
@@ -459,6 +464,7 @@ def from_pim(
459464
dry_run: Literal[False] = False,
460465
**kwargs: Unpack[PIMArgsWithoutDryRun],
461466
) -> session_meshing.Meshing: ...
467+
462468
@overload
463469
@classmethod
464470
def from_pim(
@@ -482,6 +488,7 @@ def from_install(
482488
dry_run: Literal[False] = False,
483489
**kwargs: Unpack[LaunchFluentArgs],
484490
) -> session_pure_meshing.PureMeshing: ...
491+
485492
@overload
486493
@classmethod
487494
def from_install(
@@ -499,6 +506,7 @@ def from_container(
499506
dry_run: Literal[False] = False,
500507
**kwargs: Unpack[ContainerArgsWithoutDryRun],
501508
) -> session_pure_meshing.PureMeshing: ...
509+
502510
@overload
503511
@classmethod
504512
def from_container(
@@ -516,6 +524,7 @@ def from_pim(
516524
dry_run: Literal[False] = False,
517525
**kwargs: Unpack[PIMArgsWithoutDryRun],
518526
) -> session_pure_meshing.PureMeshing: ...
527+
519528
@overload
520529
@classmethod
521530
def from_pim(
@@ -539,6 +548,7 @@ def from_install(
539548
dry_run: Literal[False] = False,
540549
**kwargs: Unpack[LaunchFluentArgs],
541550
) -> session_solver.Solver: ...
551+
542552
@overload
543553
@classmethod
544554
def from_install(
@@ -556,6 +566,7 @@ def from_container(
556566
dry_run: Literal[False] = False,
557567
**kwargs: Unpack[ContainerArgsWithoutDryRun],
558568
) -> session_solver.Solver: ...
569+
559570
@overload
560571
@classmethod
561572
def from_container(
@@ -573,6 +584,7 @@ def from_pim(
573584
dry_run: Literal[False] = False,
574585
**kwargs: Unpack[PIMArgsWithoutDryRun],
575586
) -> session_solver.Solver: ...
587+
576588
@overload
577589
@classmethod
578590
def from_pim(
@@ -596,6 +608,7 @@ def from_install(
596608
dry_run: Literal[False] = False,
597609
**kwargs: Unpack[LaunchFluentArgs],
598610
) -> session_solver.Solver: ...
611+
599612
@overload
600613
@classmethod
601614
def from_install(
@@ -613,6 +626,7 @@ def from_container(
613626
dry_run: Literal[False] = False,
614627
**kwargs: Unpack[ContainerArgsWithoutDryRun],
615628
) -> session_solver.Solver: ...
629+
616630
@overload
617631
@classmethod
618632
def from_container(
@@ -630,6 +644,7 @@ def from_pim(
630644
dry_run: Literal[False] = False,
631645
**kwargs: Unpack[PIMArgsWithoutDryRun],
632646
) -> session_solver.Solver: ...
647+
633648
@overload
634649
@classmethod
635650
def from_pim(
@@ -653,6 +668,7 @@ def from_install(
653668
dry_run: Literal[False] = False,
654669
**kwargs: Unpack[LaunchFluentArgs],
655670
) -> session_solver_aero.SolverAero: ...
671+
656672
@overload
657673
@classmethod
658674
def from_install(
@@ -670,6 +686,7 @@ def from_container(
670686
dry_run: Literal[False] = False,
671687
**kwargs: Unpack[ContainerArgsWithoutDryRun],
672688
) -> session_solver_aero.SolverAero: ...
689+
673690
@overload
674691
@classmethod
675692
def from_container(
@@ -687,6 +704,7 @@ def from_pim(
687704
dry_run: Literal[False] = False,
688705
**kwargs: Unpack[PIMArgsWithoutDryRun],
689706
) -> session_solver_aero.SolverAero: ...
707+
690708
@overload
691709
@classmethod
692710
def from_pim(
@@ -710,6 +728,7 @@ def from_install(
710728
dry_run: Literal[False] = False,
711729
**kwargs: Unpack[LaunchFluentArgs],
712730
) -> session_solver_icing.SolverIcing: ...
731+
713732
@overload
714733
@classmethod
715734
def from_install(
@@ -727,6 +746,7 @@ def from_container(
727746
dry_run: Literal[False] = False,
728747
**kwargs: Unpack[ContainerArgsWithoutDryRun],
729748
) -> session_solver_icing.SolverIcing: ...
749+
730750
@overload
731751
@classmethod
732752
def from_container(
@@ -744,6 +764,7 @@ def from_pim(
744764
dry_run: Literal[False] = False,
745765
**kwargs: Unpack[PIMArgsWithoutDryRun],
746766
) -> session_solver_icing.SolverIcing: ...
767+
747768
@overload
748769
@classmethod
749770
def from_pim(

0 commit comments

Comments
 (0)