From b520bac2b27c43c0e2adcb60e24b1cf78b6e72f1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 1 Mar 2024 03:07:17 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/lightning/data/processing/dns.py | 2 +- tests/tests_data/processing/test_dns.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lightning/data/processing/dns.py b/src/lightning/data/processing/dns.py index 94be8d1b288189..9dce141b1bbb24 100644 --- a/src/lightning/data/processing/dns.py +++ b/src/lightning/data/processing/dns.py @@ -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, diff --git a/tests/tests_data/processing/test_dns.py b/tests/tests_data/processing/test_dns.py index 308d05fa095392..f2a94c3f5ab193 100644 --- a/tests/tests_data/processing/test_dns.py +++ b/tests/tests_data/processing/test_dns.py @@ -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 + )