Skip to content

Commit b520bac

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lightning/data/processing/dns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def optimize_dns(enable: bool) -> None:
2525

2626
if (enable and any("127.0.0.53" in line for line in lines)) or (
2727
not enable and any("127.0.0.1" in line for line in lines)
28-
): # noqa E501
28+
): # E501
2929
Popen(
3030
f"sudo /home/zeus/miniconda3/envs/cloudspace/bin/python -c 'from lightning.data.processing.dns import _optimize_dns; _optimize_dns({enable})'", # noqa E501
3131
shell=True,

tests/tests_data/processing/test_dns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ def readlines(self):
3232
assert (
3333
cmd
3434
== "sudo /home/zeus/miniconda3/envs/cloudspace/bin/python -c 'from lightning.data.processing.dns import _optimize_dns; _optimize_dns(True)'"
35-
) # noqa: E501
35+
)

0 commit comments

Comments
 (0)