diff --git a/.codespellrc b/.codespellrc deleted file mode 100644 index 82d4a4b..0000000 --- a/.codespellrc +++ /dev/null @@ -1,4 +0,0 @@ -[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,ect,ther,esy -quiet-level = 3 \ No newline at end of file diff --git a/.github/workflows/testing-and-deployment.yml b/.github/workflows/testing-and-deployment.yml index 9291b95..c65d4ac 100644 --- a/.github/workflows/testing-and-deployment.yml +++ b/.github/workflows/testing-and-deployment.yml @@ -95,7 +95,7 @@ jobs: - uses: actions/checkout@v4 - name: Build wheels - uses: pypa/cibuildwheel@v2.14.1 + uses: pypa/cibuildwheel@v2.16.2 - name: List generated wheels run: | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b259f6a..f8daa53 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,6 +4,12 @@ ci: repos: +- repo: https://github.com/keewis/blackdoc + rev: v0.3.8 + hooks: + - id: blackdoc + files: '\.py$' + - repo: https://github.com/pycqa/isort rev: 5.12.0 hooks: @@ -29,9 +35,11 @@ repos: files: '\.py$' - repo: https://github.com/codespell-project/codespell - rev: v2.2.5 + rev: v2.2.6 hooks: - id: codespell + additional_dependencies: + - tomli - repo: https://github.com/pycqa/pydocstyle rev: 6.3.0 @@ -69,6 +77,6 @@ repos: exclude: '.*\.(cdb|rst|dat)$' - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.26.3 + rev: 0.27.0 hooks: - id: check-github-workflows diff --git a/doc/ignore-words.txt b/doc/ignore-words.txt new file mode 100644 index 0000000..5da91cf --- /dev/null +++ b/doc/ignore-words.txt @@ -0,0 +1,25 @@ +aadd +ans +appen +delet +ect +emiss +esy +extrem +filname +imagin +ist +levl +mater +nin +parm +poin +pres +sord +struc +sur +ther +tread +vise +wan +wan diff --git a/pyproject.toml b/pyproject.toml index 596ce05..e040725 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,3 +27,8 @@ test-command = "pytest {project}/tests -vx" # https://cibuildwheel.readthedocs.io/en/stable/faq/#apple-silicon archs = ["x86_64", "universal2"] test-skip = ["*_arm64", "*_universal2:arm64"] + +[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/*,*.mypy_cache/*,./docker/mapdl/*,./_unused/*,*.cdb' +ignore-words = "doc/ignore-words.txt" +quiet-level = 3 \ No newline at end of file diff --git a/requirements/requirements_test.txt b/requirements/requirements_test.txt index 4220a11..acdca76 100644 --- a/requirements/requirements_test.txt +++ b/requirements/requirements_test.txt @@ -1,2 +1,2 @@ -pytest==7.4.2 +pytest==7.4.3 pytest-cov==4.1.0