From f4fb2cf71d91ba42b1ceeaa290300ab0954d14aa Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Wed, 27 Nov 2024 10:39:17 +0100 Subject: [PATCH] Fix lint --- dev/archery/archery/docker/core.py | 1 - dev/archery/archery/utils/logger.py | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/dev/archery/archery/docker/core.py b/dev/archery/archery/docker/core.py index ed3dc679561f6..faf5c29744522 100644 --- a/dev/archery/archery/docker/core.py +++ b/dev/archery/archery/docker/core.py @@ -44,7 +44,6 @@ def flatten(node, parents=None): raise TypeError(node) - _arch_short_mapping = { 'arm64v8': 'arm64', } diff --git a/dev/archery/archery/utils/logger.py b/dev/archery/archery/utils/logger.py index 8699bf1823180..4ab119ea7d951 100644 --- a/dev/archery/archery/utils/logger.py +++ b/dev/archery/archery/utils/logger.py @@ -30,17 +30,21 @@ def __init__(self, quiet=False): ctx = LoggingContext() + # Note: detection routines for many CI services can be found # in https://github.com/semantic-release/env-ci def in_appveyor(): return os.environ.get("APPVEYOR", "").lower() == "true" + def in_azure_pipelines(): return os.environ.get("BUILD_BUILDURI", "") != "" + def in_github_actions(): return os.environ.get("GITHUB_ACTIONS") == "true" + def running_in_ci(): return in_appveyor() or in_azure_pipelines() or in_github_actions()