Skip to content

Commit c25c20a

Browse files
committed
💡 remove unused # ruff: noqa directives
1 parent 33767d5 commit c25c20a

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

‎src/_numtype/@test/test_to_array.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# ruff: noqa: PYI042, UP018
21
from typing import TypeAlias
32
from typing_extensions import TypeVar
43

‎tool/test/test_format_ignores.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Test the format_ignores module."""
22

3-
# ruff: noqa: PLC2701
43
import errno
54
import sys
65
from pathlib import Path
@@ -41,7 +40,7 @@ def test_process_file(tmpdir: pytest.TempdirFactory) -> None:
4140
pass
4241
4342
def func2() -> None:
44-
# pyright: ignore[reportUnknownMemberType,reportUnknownVariableType]
43+
# pyright: ignore[reportUnknownMemberType, reportUnknownVariableType]
4544
pass
4645
"""
4746
test_file.write_text(test_content, encoding="utf-8")
@@ -95,15 +94,15 @@ def test_process_directory(tmpdir: pytest.TempdirFactory) -> None:
9594
encoding="utf-8",
9695
)
9796
test_files[2].write_text(
98-
"# pyright: ignore[reportUnknownVariableType,reportUnknownMemberType]",
97+
"# pyright: ignore[reportUnknownMemberType, reportUnknownVariableType]",
9998
encoding="utf-8",
10099
)
101100
test_files[3].write_text(
102-
"# type: ignore[no-any-return, attr-defined]",
101+
"# type: ignore[attr-defined, no-any-return]",
103102
encoding="utf-8",
104103
)
105104
test_files[4].write_text(
106-
"# type: ignore[no-any-return, attr-defined]",
105+
"# type: ignore[attr-defined, no-any-return]",
107106
encoding="utf-8",
108107
)
109108

@@ -138,11 +137,11 @@ def test_process_directory(tmpdir: pytest.TempdirFactory) -> None:
138137
)
139138
assert (
140139
test_files[3].read_text(encoding="utf-8")
141-
== "# type: ignore[no-any-return, attr-defined]"
140+
== "# type: ignore[attr-defined, no-any-return]"
142141
)
143142
assert (
144143
test_files[4].read_text(encoding="utf-8")
145-
== "# type: ignore[no-any-return, attr-defined]"
144+
== "# type: ignore[attr-defined, no-any-return]"
146145
)
147146

148147

@@ -153,7 +152,7 @@ def test_main_success(
153152
"""Test main function with valid path."""
154153
test_file = Path(str(tmpdir)) / "test.pyi"
155154
test_file.write_text(
156-
"# type: ignore[no-any-return, attr-defined]",
155+
"# type: ignore[attr-defined, no-any-return]",
157156
encoding="utf-8",
158157
)
159158

@@ -175,7 +174,7 @@ def test_main_check_mode(
175174
"""Test main function in check-only mode."""
176175
test_file = Path(str(tmpdir)) / "test.pyi"
177176
test_file.write_text(
178-
"# type: ignore[no-any-return, attr-defined]",
177+
"# type: ignore[attr-defined, no-any-return]",
179178
encoding="utf-8",
180179
)
181180

@@ -186,7 +185,7 @@ def test_main_check_mode(
186185

187186
assert (
188187
test_file.read_text(encoding="utf-8")
189-
== "# type: ignore[no-any-return, attr-defined]"
188+
== "# type: ignore[attr-defined, no-any-return]"
190189
)
191190

192191

@@ -206,7 +205,7 @@ def test_main_custom_pattern(
206205
"""Test main function with custom pattern."""
207206
temp_dir = Path(str(tmpdir))
208207
test_py = temp_dir / "test.py"
209-
test_py.write_text("# type: ignore[no-any-return, attr-defined]", encoding="utf-8")
208+
test_py.write_text("# type: ignore[attr-defined, no-any-return]", encoding="utf-8")
210209

211210
monkeypatch.setattr(
212211
sys,

‎tool/testgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Type-tests generation."""
22

3-
# ruff: noqa: PLR0916, PLR6301, TD003, ERA001, D101, D102, DOC201
3+
# ruff: noqa: PLR0916, PLR6301, ERA001, D101, D102, DOC201
44

55
import sys
66
from pathlib import Path

0 commit comments

Comments
 (0)