Skip to content

Commit acb66b3

Browse files
committed
[Lint] Reformat & lint
1 parent efcde09 commit acb66b3

4 files changed

Lines changed: 8 additions & 214 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,9 @@ find = {}
3131

3232
[tool.setuptools.package-data]
3333
spm = ["_spm/_spm.ctf"]
34+
35+
[tool.ruff]
36+
include = ["pyproject.toml", "spm/**/*.py", "tests/**/*.py", "scripts/**/*.py"]
37+
38+
[tool.ruff.lint.per-file-ignores]
39+
"__init__.py" = ["F811"]

scripts/setup_matlab.py

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

tests/test_array.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,6 @@ def test_array_instantiate_shape_2d_col(self):
4444
self.assertEqual(a.dtype, np.float64)
4545
self.assertTrue((a == 0).all())
4646

47-
def test_array_instantiate_shape_2d(self):
48-
a = Array(2, 3, 4, 5)
49-
50-
self.assertIsInstance(a, Array)
51-
self.assertEqual(a.shape, (2, 3, 4, 5))
52-
self.assertEqual(a.dtype, np.float64)
53-
self.assertTrue((a == 0).all())
54-
5547
def test_array_instantiate_with_shape_order(self):
5648
a = Array([3, 2], order="C")
5749
self.assertIsInstance(a, Array)

tests/test_struct.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ def test_struct_instantiate_empty_nd(self):
6969

7070
self.assertTrue(
7171
all(
72-
isinstance(s[i, j, k, l], Struct)
73-
for i, j, k, l in product(range(2), range(3), range(4), range(5))
72+
isinstance(s[i, j, k, m], Struct)
73+
for i, j, k, m in product(range(2), range(3), range(4), range(5))
7474
)
7575
)
7676

0 commit comments

Comments
 (0)