• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

conda-forge / conda-smithy / 13570694047
71%
master: 60%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 27 Feb 2025 04:07PM UTC
Jobs 1
Files 22
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Feb 2025 04:04PM UTC coverage: 72.332% (+0.06%) from 72.269%
13570694047

push

github

web-flow
Support running `conda-smithy lint` in feedstock directory (#2250)

* Support running `conda-smithy lint` in feedstock directory

Extend the default behavior of `conda-smithy lint` to detect
if a feedstock directory has been passed in place of the recipe
directory (e.g. by running it with no paths specified), and handle
the paths appropriately.

The new logic covers three possible scenarios:

1. If `--feedstock-directory` is passed, everything works as before.

2. If not, the specified directory is checked for `meta.yaml`
   and `recipe.yaml`, also as before.

3. If neither exists, the specified directory is checked for
   `conda-forge.yml`.  If it exists, it set to be the feedstock
   directory, and the file is parsed to determine the correct recipe
   subdirectory.

This is primarily meant to address my common mistake of running:

    conda smithy lint

in the feedstock directory, which can lead to pretty confusing error
messages, particularly if the feedstock is using v1 recipes, and smithy
says it can't find `recipe/meta.yaml` -- and you start wondering whether
you've made a typo in `conda-forge.yml` or what.

This is an alternative to #2249.

* Fix pre-commit issues

* Add tests

* Add a news entry

---------

Co-authored-by: Matthew R. Becker <beckermr@users.noreply.github.com>

1297 of 1950 branches covered (66.51%)

15 of 16 new or added lines in 1 file covered. (93.75%)

3464 of 4789 relevant lines covered (72.33%)

0.72 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
98.77
0.04% conda_smithy/lint_recipe.py
Jobs
ID Job ID Ran Files Coverage
1 13570694047.1 27 Feb 2025 04:07PM UTC 22
72.33
GitHub Action Run
Source Files on build 13570694047
  • Tree
  • List 22
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 355cfa47 on github
  • Prev Build on main (#13529466151)
  • Next Build on main (#13571988017)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc