Skip to content

Commit

Permalink
Merge pull request #732 from conda-forge/beckermr-patch-1
Browse files Browse the repository at this point in the history
fix: try and get logs to appear
  • Loading branch information
beckermr authored Oct 15, 2024
2 parents 4d512d3 + 93cc56a commit 3c10dd2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import traceback

import click
from conda_forge_feedstock_ops import setup_logging
from conda_forge_feedstock_ops.lint import lint as lint_feedstock
from conda_forge_feedstock_ops.os_utils import sync_dirs
from git import Repo
Expand Down Expand Up @@ -76,7 +77,7 @@ def main_init_task(task, repo, pr_number):
@click.option("--task-data-dir", required=True, type=str)
@click.option("--requested-version", required=False, type=str, default=None)
def main_run_task(task, repo, pr_number, task_data_dir, requested_version):
logging.basicConfig(level=logging.INFO)
setup_logging()

LOGGER.info("running task `%s` for conda-forge/%s#%s", task, repo, pr_number)

Expand Down Expand Up @@ -426,7 +427,7 @@ def main_finalize_task(task_data_dir):
"""
Hi! This is the friendly automated conda-forge-linting service.
I Failed to even lint the recipe, probably because of a conda-smithy
I failed to even lint the recipe, probably because of a conda-smithy
bug :cry:. This likely indicates a problem in your `meta.yaml`, \\
though. To get a traceback to help figure out what's going on, \\
install conda-smithy and run \\
Expand Down
7 changes: 7 additions & 0 deletions tests/test_live_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
import conda_forge_webservices

TEST_CASES = [
(
733,
"failure",
[
"failed to even lint the recipe",
],
),
(
632,
"failure",
Expand Down

0 comments on commit 3c10dd2

Please sign in to comment.