diff --git a/.codespellrc b/.codespellrc index 105de067da8..7d3e5ef2fbf 100644 --- a/.codespellrc +++ b/.codespellrc @@ -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 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9b3ab579bfd..d6bc921a8f7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 22.10.0 hooks: - id: black @@ -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 @@ -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 diff --git a/doc/source/conf.py b/doc/source/conf.py index 502c75a35bd..fa9677e2128 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -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, diff --git a/doc/source/examples/technology_showcase_examples/techdemo-28/ex_28-tecfricstir.rst b/doc/source/examples/technology_showcase_examples/techdemo-28/ex_28-tecfricstir.rst index 47918fe4b86..441d129e4a0 100644 --- a/doc/source/examples/technology_showcase_examples/techdemo-28/ex_28-tecfricstir.rst +++ b/doc/source/examples/technology_showcase_examples/techdemo-28/ex_28-tecfricstir.rst @@ -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 @@ -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 diff --git a/examples/00-mapdl-examples/mapdl_beam.py b/examples/00-mapdl-examples/mapdl_beam.py index a6cfd91e9d5..a62e6a50fa5 100644 --- a/examples/00-mapdl-examples/mapdl_beam.py +++ b/examples/00-mapdl-examples/mapdl_beam.py @@ -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) diff --git a/examples/04-general-fea/00-how_finite_element_works.py b/examples/04-general-fea/00-how_finite_element_works.py index 4a12dc5d58d..46ffc016eff 100644 --- a/examples/04-general-fea/00-how_finite_element_works.py +++ b/examples/04-general-fea/00-how_finite_element_works.py @@ -779,7 +779,7 @@ def evaluate(self): ############################################################################### -# Aplying the created classes. +# Applying the created classes. isotropic = Isotropic(30e6, 0.25) elem = Elem2D(nodes) diff --git a/src/ansys/mapdl/core/common_grpc.py b/src/ansys/mapdl/core/common_grpc.py index 1852d09db7d..09b1b009652 100644 --- a/src/ansys/mapdl/core/common_grpc.py +++ b/src/ansys/mapdl/core/common_grpc.py @@ -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 ------- diff --git a/src/ansys/mapdl/core/database/nodes.py b/src/ansys/mapdl/core/database/nodes.py index 2f0b7078a2c..f572021ab89 100644 --- a/src/ansys/mapdl/core/database/nodes.py +++ b/src/ansys/mapdl/core/database/nodes.py @@ -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 diff --git a/src/ansys/mapdl/core/mapdl.py b/src/ansys/mapdl/core/mapdl.py index 3dd20ae6834..73170abc388 100644 --- a/src/ansys/mapdl/core/mapdl.py +++ b/src/ansys/mapdl/core/mapdl.py @@ -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 ('_'). " diff --git a/src/ansys/mapdl/core/mapdl_grpc.py b/src/ansys/mapdl/core/mapdl_grpc.py index d33c9d2ddbd..59b61824688 100755 --- a/src/ansys/mapdl/core/mapdl_grpc.py +++ b/src/ansys/mapdl/core/mapdl_grpc.py @@ -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: diff --git a/tests/conftest.py b/tests/conftest.py index d15667a1731..c951aa851b6 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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