Skip to content
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
10 changes: 0 additions & 10 deletions .coveragerc

This file was deleted.

6 changes: 0 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ repos:
rev: 5.10.1
hooks:
- id: isort
args: [
"--profile", "black",
"--force-sort-within-sections",
"--skip-glob", "*__init__.py",
]

- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
Expand All @@ -24,7 +19,6 @@ repos:
hooks:
- id: codespell

# add this eventually
# - repo: https://github.com/pycqa/pydocstyle
# rev: 6.1.1
# hooks:
Expand Down
30 changes: 29 additions & 1 deletion doc/styles/Vocab/ANSYS/accept.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,32 @@ Windows Subsystem
Windows Subsystem for Linux
WSL
Zhu
3-D
3-D
delet
appen
parm
pres
WAN
filname
ans
tread
wan
levl
mater
aadd
extrem
imagin
ist
nin
sord
struc
emiss
vise
sur
larg
smal
ect
nce
singl
righ
trian
48 changes: 47 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,50 @@ name = "ansys.mapdl.core"
Source = "https://github.com/pyansys/pymapdl"

[project.scripts]
pymapdl_convert_script = "ansys.mapdl.core.convert:cli"
pymapdl_convert_script = "ansys.mapdl.core.convert:cli"

[tool.pytest.ini_options]
junit_family = "legacy"
filterwarnings = [
"ignore::FutureWarning",
"ignore::PendingDeprecationWarning",
"ignore::DeprecationWarning",
# bogus numpy ABI warning (see numpy/#432)
"ignore:.*numpy.dtype size changed.*:RuntimeWarning",
"ignore:.*numpy.ufunc size changed.*:RuntimeWarning",
"ignore::UserWarning",
]
markers = [
"skip_grpc: skip tests using grpc",
"corba: skip tests using the CORBA interface",
"gui: skip tests that launch the GUI interface",
]
testpaths = "tests"

[tool.isort]
profile = "black"
force_sort_within_sections = true
default_section = "THIRDPARTY"
skip_glob = ["__init__.py"]
src_paths = ["doc", "src", "tests"]


[tool.coverage.run]
source = ["ansys/pymapdl"]
omit = [
# omit commands
"ansys/mapdl/core/_commands/*",

# ignore legacy interfaces
"ansys/mapdl/core/mapdl_console.py",
"ansys/mapdl/core/mapdl_corba.py",
"ansys/mapdl/core/jupyter.py",
]

[tool.coverage.report]
show_missing = true

[tool.codespell]
skip = "*.pyc,*.txt,*.gif,*.png,*.jpg,*.js,*.html,*.doctree,*.ttf,*.woff,*.woff2,*.eot,*.mp4,*.inv,*.pickle,*.ipynb,flycheck*,./.git/*,./.hypothesis/*,*.yml,./doc/build/*,./doc/images/*,./dist/*,*~,.hypothesis*,./doc/source/examples/*,*cover,*.dat,*.mac,build,./docker/mapdl/v*,./factory/*,./ansys/mapdl/core/mapdl_functions.py,PKG-INFO,*.mypy_cache/*,./docker/mapdl/*,./_unused/*"
ignore-words-list = "doc/styles/Vocab/ANSYS/accept.txt"
quiet-level = 3
15 changes: 0 additions & 15 deletions pytest.ini

This file was deleted.

8 changes: 2 additions & 6 deletions src/ansys/mapdl/core/database/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
"""The mapdl database module, allowing the access to the MAPDL database from Python."""

from .database import ( # noqa: F401
VALID_MAPDL_VERSIONS,
DBDef,
MapdlDb,
check_mapdl_db_is_alive,
)
from .database import MapdlDb # noqa: F401
from .database import VALID_MAPDL_VERSIONS, DBDef, check_mapdl_db_is_alive
3 changes: 2 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
from pathlib import Path
import signal

from common import Element, Node, get_details_of_elements, get_details_of_nodes
import pytest

from common import Element, Node, get_details_of_elements, get_details_of_nodes

# import time


Expand Down
2 changes: 1 addition & 1 deletion tests/test_licensing.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
import time
import types

from conftest import LOCAL as IS_LOCAL
import pytest

from ansys.mapdl.core import errors, launch_mapdl, licensing
from ansys.mapdl.core.launcher import check_valid_ansys, get_start_instance
from ansys.mapdl.core.misc import threaded
from conftest import LOCAL as IS_LOCAL

try:
LIC_INSTALLED = os.path.isfile(licensing.get_ansys_license_utility_path())
Expand Down
2 changes: 1 addition & 1 deletion tests/test_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import os
import re

from conftest import HAS_GRPC
import pytest

from ansys.mapdl.core import LOG # Global logger
from ansys.mapdl.core import logging
from conftest import HAS_GRPC

## Notes
# Use the next fixtures for:
Expand Down