Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 1, 2024
1 parent 66e6685 commit b520bac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lightning/data/processing/dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def optimize_dns(enable: bool) -> None:

if (enable and any("127.0.0.53" in line for line in lines)) or (
not enable and any("127.0.0.1" in line for line in lines)
): # noqa E501
): # E501
Popen(
f"sudo /home/zeus/miniconda3/envs/cloudspace/bin/python -c 'from lightning.data.processing.dns import _optimize_dns; _optimize_dns({enable})'", # noqa E501
shell=True,
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_data/processing/test_dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ def readlines(self):
assert (
cmd
== "sudo /home/zeus/miniconda3/envs/cloudspace/bin/python -c 'from lightning.data.processing.dns import _optimize_dns; _optimize_dns(True)'"
) # noqa: E501
)

0 comments on commit b520bac

Please sign in to comment.