Skip to content

Commit e9d087a

Browse files
authored
MAINT: generic updates (#70)
1 parent 7e8919d commit e9d087a

File tree

4 files changed

+6
-27
lines changed

4 files changed

+6
-27
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ repos:
22

33

44
- repo: https://github.com/psf/black
5-
rev: 22.12.0
5+
rev: 23.1.0
66
hooks:
77
- id: black
88
args:
99
- --line-length=100
1010

1111
- repo: https://github.com/adamchainz/blacken-docs
12-
rev: v1.12.1
12+
rev: 1.13.0
1313
hooks:
1414
- id: blacken-docs
1515
additional_dependencies: [black==22.12.0]
@@ -29,7 +29,7 @@ repos:
2929
- --max-line-length=120
3030

3131
- repo: https://github.com/codespell-project/codespell
32-
rev: v2.2.2
32+
rev: v2.2.4
3333
hooks:
3434
- id: codespell
3535
args: ["--toml", "pyproject.toml"]
@@ -52,6 +52,6 @@ repos:
5252

5353
# this validates our github workflow files
5454
- repo: https://github.com/python-jsonschema/check-jsonschema
55-
rev: 0.19.2
55+
rev: 0.22.0
5656
hooks:
5757
- id: check-github-workflows

Makefile

Lines changed: 0 additions & 17 deletions
This file was deleted.

tests/test_math.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,6 @@ def test_set_vector(mm, vec, pname):
517517

518518

519519
def test_set_vector_catch(mm):
520-
521520
with pytest.raises(ValueError, match="':' is not permitted"):
522521
mm.set_vec(np.ones(10), "my:vec")
523522

@@ -686,7 +685,6 @@ def test_factorize_inplace_arg(mm):
686685

687686

688687
def test_mult(mapdl, mm):
689-
690688
rand_ = np.random.rand(100, 100)
691689

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

712710
rand_ = np.random.rand(100, 100)
713711
if not server_meets_version(mm._mapdl._server_version, (0, 4, 0)):
714-
715712
with pytest.raises(VersionError):
716713
AA = mm.matrix(rand_, name="AA")
717714

tox.ini

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
[tox]
22
description = Default tox environments list
33
envlist =
4-
style,{py37,py38,py39,py310,py311}{,-coverage},doc
4+
style,{py38,py39,py310,py311}{,-coverage},doc
55
skip_missing_interpreters = true
66
isolated_build = true
77
isolated_build_env = build
88

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

0 commit comments

Comments
 (0)