-
-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Showing
3 changed files
with
168 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
**Added:** | ||
|
||
* <news item> | ||
|
||
**Changed:** | ||
|
||
* ``conda-smithy lint`` now can be run with the feedstock directory instead of | ||
the recipe subdirectory. (#2250) | ||
|
||
**Deprecated:** | ||
|
||
* <news item> | ||
|
||
**Removed:** | ||
|
||
* <news item> | ||
|
||
**Fixed:** | ||
|
||
* <news item> | ||
|
||
**Security:** | ||
|
||
* <news item> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters