Skip to content

Commit 6f89fce

Browse files
committed
fix: various rule violations
1 parent 9c5c2c9 commit 6f89fce

16 files changed

+5
-17
lines changed

.ci/code_generation.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
from ansys.dpf import core
44
from ansys.dpf.core.operators import build
5-
import os
6-
import glob
75
from pathlib import Path
86
import shutil
97

.ci/run_examples.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import os
2-
import glob
32
from pathlib import Path
43
import subprocess
54
import sys

.ci/run_non_regression_examples.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import os
2-
import glob
32
from ansys.dpf import core
43
import pathlib
54
import subprocess

.ci/update_dpf_dependencies.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"""
1515

1616
import os
17-
import glob
1817
from pathlib import Path
1918
import platform
2019
import shutil

src/ansys/dpf/core/misc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"""Miscellaneous functions for the DPF module."""
2424

2525
import platform
26-
import glob
2726
import os
2827
import re
2928
from pathlib import Path

src/ansys/dpf/core/path_utilities.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
server into account to create path.
2828
"""
2929

30-
import os
31-
3230
import ansys.dpf.core.server_types
3331
from ansys.dpf.core import server as server_module
3432
from pathlib import Path

src/ansys/dpf/core/plotter.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
from __future__ import annotations
3232

3333
import tempfile
34-
import os
3534
import sys
3635
import numpy as np
3736
import warnings

src/ansys/dpf/core/server_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def _get_dll_path(name, ansys_path=None):
7272
ANSYS_INSTALL = Path(core.misc.get_ansys_path(ansys_path))
7373
api_path = load_api._get_path_in_install()
7474
if api_path is None:
75-
raise ImportError(f"Could not find API path in install.")
75+
raise ImportError("Could not find API path in install.")
7676
SUB_FOLDERS = ANSYS_INSTALL / api_path
7777
if ISPOSIX:
7878
name = "lib" + name

src/ansys/dpf/core/workflow_topology/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@
2525
from .operator_connection import OperatorConnection
2626
from .data_connection import DataConnection
2727
from .exposed_pin import ExposedPin
28+
29+
__all__ = [WorkflowTopology, OperatorConnection, DataConnection, ExposedPin]

tests/test_animation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
# SOFTWARE.
2222

23-
import os
2423
from pathlib import Path
2524

2625
import pytest

0 commit comments

Comments
 (0)