Skip to content

Commit dfdbb46

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 711e0bf commit dfdbb46

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/comma/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
try:
66
from comma._version import ( # type: ignore[no-redef,unused-ignore]
7-
__version__, #
7+
__version__,
88
)
99
except ModuleNotFoundError:
1010
try:

src/comma/command/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def run(self) -> subprocess.CompletedProcess[str]:
2929
logging.debug(self)
3030
try:
3131
return subprocess.run(
32-
self.cmd, # noqa: S603
32+
self.cmd,
3333
errors="ignore",
3434
encoding="utf-8",
3535
text=self.text,

src/comma/misc/dual_writer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ def __enter__(self) -> Self:
5454
"""
5555
self.__stack__ = ExitStack().__enter__()
5656
try:
57-
self.left_writer = self.__stack__.enter_context(open(self.__left__, "w")) # noqa: SIM115
58-
self.right_writer = self.__stack__.enter_context(open(self.__right__, "w")) # noqa: SIM115
57+
self.left_writer = self.__stack__.enter_context(open(self.__left__, "w"))
58+
self.right_writer = self.__stack__.enter_context(open(self.__right__, "w"))
5959
except BaseException:
6060
self.__stack__.close()
6161
raise

tests/comma_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141

4242

43-
@pytest.mark.parametrize("node", TyperReflection(app=app_main)._traverse_nodes_()) # noqa: SLF001
43+
@pytest.mark.parametrize("node", TyperReflection(app=app_main)._traverse_nodes_())
4444
def test_help(node: TyperNode) -> None:
4545
if node.path in ignore_commands:
4646
return

tests/gron_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@
229229
def test_gron(obj: JSON_TYPE) -> None:
230230
actual = gron(obj)
231231
expected = subprocess.run(
232-
(GRON_PROVIDER.get_executable(),), # noqa: S603
232+
(GRON_PROVIDER.get_executable(),),
233233
input=json.dumps(obj),
234234
capture_output=True,
235235
text=True,
@@ -242,7 +242,7 @@ def test_gron(obj: JSON_TYPE) -> None:
242242
"original",
243243
(
244244
subprocess.run(
245-
(GRON_PROVIDER.get_executable(),), # noqa: S603
245+
(GRON_PROVIDER.get_executable(),),
246246
capture_output=True,
247247
text=True,
248248
input=x,
@@ -255,7 +255,7 @@ def test_ungron(original: list[str]) -> None:
255255

256256
expected = json.loads(
257257
subprocess.run(
258-
(GRON_PROVIDER.get_executable(), "--ungron"), # noqa: S603
258+
(GRON_PROVIDER.get_executable(), "--ungron"),
259259
input="\n".join(original),
260260
capture_output=True,
261261
text=True,

0 commit comments

Comments
 (0)