Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pitrou committed Nov 27, 2024
1 parent 9e33adf commit f4fb2cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion dev/archery/archery/docker/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def flatten(node, parents=None):
raise TypeError(node)



_arch_short_mapping = {
'arm64v8': 'arm64',
}
Expand Down
4 changes: 4 additions & 0 deletions dev/archery/archery/utils/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit f4fb2cf

Please sign in to comment.