-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #246 from roryyorke/ruff-clean
Fix or silence `ruff check` warnings; add `ruff check` to Github Actions
- Loading branch information
Showing
12 changed files
with
40 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,6 @@ | |
# test_mb.py - test suite for linear algebra commands | ||
# bnavigator <[email protected]>, Aug 2019 | ||
|
||
import sys | ||
|
||
import numpy as np | ||
import pytest | ||
from numpy.testing import assert_allclose | ||
|
@@ -96,19 +94,6 @@ def test_mb02ed_parameter_errors(): | |
[1.0000, 2.0000], | ||
] | ||
) | ||
X = np.array( | ||
[ | ||
[0.2408, 0.4816], | ||
[0.1558, 0.3116], | ||
[0.1534, 0.3068], | ||
[0.2302, 0.4603], | ||
[0.1467, 0.2934], | ||
[0.1537, 0.3075], | ||
[0.2349, 0.4698], | ||
[0.1498, 0.2995], | ||
[0.1653, 0.3307], | ||
] | ||
) | ||
|
||
# Test for wrong parameter typet | ||
with pytest.raises(expected_exception=SlycotParameterError, match='typet must be either "R" or "C"') as cm: | ||
|
@@ -162,19 +147,6 @@ def test_mb02ed_matrix_error(): | |
[1.0000, 2.0000], | ||
] | ||
) | ||
X = np.array( | ||
[ | ||
[0.2408, 0.4816], | ||
[0.1558, 0.3116], | ||
[0.1534, 0.3068], | ||
[0.2302, 0.4603], | ||
[0.1467, 0.2934], | ||
[0.1537, 0.3075], | ||
[0.2349, 0.4698], | ||
[0.1498, 0.2995], | ||
[0.1653, 0.3307], | ||
] | ||
) | ||
|
||
with pytest.raises(SlycotArithmeticError, | ||
match = "The reduction algorithm failed. " | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters