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
2 changes: 1 addition & 1 deletion .codespellrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[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 = delet,appen,parm,pres,WAN,filname,ans,tread,wan,levl,mater,aadd,extrem,imagin,ist,nin,sord,struc,emiss,vise,sur,larg,smal,ect
ignore-words-list = 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
quiet-level = 3
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 22.3.0
rev: 22.10.0
hooks:
- id: black

Expand All @@ -14,13 +14,13 @@ repos:
"--skip-glob", "*__init__.py",
]

- repo: https://gitlab.com/PyCQA/flake8
rev: 3.9.2
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
hooks:
- id: flake8

- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
rev: v2.2.2
hooks:
- id: codespell

Expand All @@ -33,13 +33,13 @@ repos:
# exclude: "tests/"

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
rev: v4.3.0
hooks:
- id: check-merge-conflict
- id: debug-statements

# this validates our github workflow files
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.14.0
rev: 0.19.1
hooks:
- id: check-github-workflows
2 changes: 1 addition & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
"examples_dirs": ["../../examples/"],
# path where to save gallery generated examples
"gallery_dirs": ["examples/gallery_examples"],
# Patter to search for example files
# Pattern to search for example files
"filename_pattern": r"\.py",
# Remove the "Download all examples" button from the top level gallery
"download_all_examples": False,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ cylindrical shape tool, as shown in the following figure:
# ***** Problem parameters ********
l = 76.2e-03 # Length of each plate,m
w = 31.75e-03 # Width of each plate,m
t = 3.18e-03 # Tickness of each plate,m
t = 3.18e-03 # Thickness of each plate,m
r1 = 7.62e-03 # Shoulder radius of tool,m
h = 15.24e-03 # Height of tool, m
l1 = r1 # Starting location of tool on weldline
Expand Down Expand Up @@ -248,7 +248,7 @@ The height of the tool is equal to the shoulder diameter. Both the workpiece
# ***** Problem parameters ********
l = 76.2e-03 # Length of each plate,m
w = 31.75e-03 # Width of each plate,m
t = 3.18e-03 # Tickness of each plate,m
t = 3.18e-03 # Thickness of each plate,m
r1 = 7.62e-03 # Shoulder radius of tool,m
h = 15.24e-03 # Height of tool, m
l1 = r1 # Starting location of tool on weldline
Expand Down
2 changes: 1 addition & 1 deletion examples/00-mapdl-examples/mapdl_beam.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

###############################################################################
# Access them as a list of arrays
# See the documentation on ``mapdl.mesh.elem`` for interperting the
# See the documentation on ``mapdl.mesh.elem`` for interpreting the
# individual elements
for elem in mapdl.mesh.elem:
print(elem)
Expand Down
2 changes: 1 addition & 1 deletion examples/04-general-fea/00-how_finite_element_works.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ def evaluate(self):


###############################################################################
# Aplying the created classes.
# Applying the created classes.

isotropic = Isotropic(30e6, 0.25)
elem = Elem2D(nodes)
Expand Down
2 changes: 1 addition & 1 deletion src/ansys/mapdl/core/common_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def parse_chunks(chunks, dtype=None):
generator from grpc. Each chunk contains a bytes payload

dtype : np.dtype
Numpy data type to interpert chunks as.
Numpy data type to interpret chunks as.

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion src/ansys/mapdl/core/database/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def all_asarray(self):
# where each node is
# INT32, DOUBLE, DOUBLE, DOUBLE, DOUBLE, DOUBLE, DOUBLE

# first, just interpert as int32 and extract node numbering
# first, just interpret as int32 and extract node numbering
# ignore the first int as this is n_nodes
# data = parse_chunks(chunks, np.int32)
c = 0
Expand Down
2 changes: 1 addition & 1 deletion src/ansys/mapdl/core/mapdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -3357,7 +3357,7 @@ def _check_parameter_name(self, param_name):
match_reserved_leading_underscored_parameter_name = (
r"^_[a-zA-Z\d_\(\),\s_]{1,31}[a-zA-Z\d\(\),\s]$"
)
# If it also ends in undescore, this won't be triggered.
# If it also ends in underscore, this won't be triggered.
if re.search(match_reserved_leading_underscored_parameter_name, param_name):
raise ValueError(
f"It is discouraged the use of parameters starting with underscore ('_'). "
Expand Down
2 changes: 1 addition & 1 deletion src/ansys/mapdl/core/mapdl_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1254,7 +1254,7 @@ def cdread(self, option="", fname="", ext="", fnamei="", exti="", **kwargs):
"Input the geometry and mesh files separately "
r'with "\INPUT" or ``mapdl.input``'
)
# the old behaviour is to supplied the name and the extension separatelly.
# the old behaviour is to supplied the name and the extension separately.
# to make it easier let's going to allow names with extensions
basename = os.path.basename(fname)
if len(basename.split(".")) == 1:
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ def contact_solve(mapdl):
# ***** Problem parameters ********
l = 76.2e-03 / 3 # Length of each plate,m
w = 31.75e-03 / 2 # Width of each plate,m
t = 3.18e-03 # Tickness of each plate,m
t = 3.18e-03 # Thickness of each plate,m
r1 = 7.62e-03 # Shoulder radius of tool,m
h = 15.24e-03 # Height of tool, m
l1 = r1 # Starting location of tool on weldline
Expand Down