S108: ignore our uses
This commit is contained in:
@@ -176,7 +176,7 @@ class ClanFlake:
|
||||
self.temporary_home = temporary_home
|
||||
self.path = temporary_home / "flake"
|
||||
if not suppress_tmp_home_warning:
|
||||
if "/tmp" not in str(os.environ.get("HOME")):
|
||||
if "/tmp" not in str(os.environ.get("HOME")): # noqa: S108 - Checking if HOME is in temp directory
|
||||
log.warning(
|
||||
f"!! $HOME does not point to a temp directory!! HOME={os.environ['HOME']}",
|
||||
)
|
||||
@@ -368,7 +368,7 @@ def create_flake(
|
||||
check=True,
|
||||
)
|
||||
|
||||
if "/tmp" not in str(os.environ.get("HOME")):
|
||||
if "/tmp" not in str(os.environ.get("HOME")): # noqa: S108 - Checking if HOME is in temp directory
|
||||
log.warning(
|
||||
f"!! $HOME does not point to a temp directory!! HOME={os.environ['HOME']}",
|
||||
)
|
||||
|
||||
@@ -14,7 +14,7 @@ TEMPDIR = None
|
||||
# macOS' default temporary directory is too long for unix sockets
|
||||
# This can break applications such as gpg-agent
|
||||
if platform == "darwin":
|
||||
TEMPDIR = Path("/tmp")
|
||||
TEMPDIR = Path("/tmp") # noqa: S108 - Required on macOS due to socket path length limits
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
||||
Reference in New Issue
Block a user