Skip to content

MAINT: generic updates #70

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 4 commits into from
Mar 21, 2023
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
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ repos:


- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.1.0
hooks:
- id: black
args:
- --line-length=100

- repo: https://github.com/adamchainz/blacken-docs
rev: v1.12.1
rev: 1.13.0
hooks:
- id: blacken-docs
additional_dependencies: [black==22.12.0]
Expand All @@ -29,7 +29,7 @@ repos:
- --max-line-length=120

- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
rev: v2.2.4
hooks:
- id: codespell
args: ["--toml", "pyproject.toml"]
Expand All @@ -52,6 +52,6 @@ repos:

# this validates our github workflow files
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.19.2
rev: 0.22.0
hooks:
- id: check-github-workflows
17 changes: 0 additions & 17 deletions Makefile

This file was deleted.

3 changes: 0 additions & 3 deletions tests/test_math.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,6 @@ def test_set_vector(mm, vec, pname):


def test_set_vector_catch(mm):

with pytest.raises(ValueError, match="':' is not permitted"):
mm.set_vec(np.ones(10), "my:vec")

Expand Down Expand Up @@ -686,7 +685,6 @@ def test_factorize_inplace_arg(mm):


def test_mult(mapdl, mm):

rand_ = np.random.rand(100, 100)

if not server_meets_version(mapdl._server_version, (0, 4, 0)):
Expand All @@ -711,7 +709,6 @@ def test__parm(mm):

rand_ = np.random.rand(100, 100)
if not server_meets_version(mm._mapdl._server_version, (0, 4, 0)):

with pytest.raises(VersionError):
AA = mm.matrix(rand_, name="AA")

Expand Down
5 changes: 2 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
[tox]
description = Default tox environments list
envlist =
style,{py37,py38,py39,py310,py311}{,-coverage},doc
style,{py38,py39,py310,py311}{,-coverage},doc
skip_missing_interpreters = true
isolated_build = true
isolated_build_env = build

[testenv]
description = Checks for project unit tests and coverage (if desired)
basepython =
py37: python3.7
py38: python3.8
py39: python3.9
py310: python3.10
Expand All @@ -35,4 +34,4 @@ commands =
description = Check if documentation generates properly
extras = doc
commands =
sphinx-build -d "{toxworkdir}/doc_doctree" doc/source "{toxworkdir}/doc_out" --color -vW -bhtml
sphinx-build -d "{toxworkdir}/doc_doctree" doc/source "{toxinidir}/doc/_build/html" --color -vW -bhtml