Skip to content

Commit

Permalink
fix: silly bug
Browse files Browse the repository at this point in the history
  • Loading branch information
beckermr committed Sep 16, 2024
1 parent c87f832 commit a7424e3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
5 changes: 1 addition & 4 deletions conda_smithy/lint_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,7 @@ def lintify_meta_yaml(

def _maintainer_exists(maintainer: str) -> bool:
"""Check if a maintainer exists on GitHub."""
return (
requests.get(f"https://github.com/beckermrr/{maintainer}").status_code
== 200
)
return requests.get(f"https://github.com/{maintainer}").status_code == 200


def run_conda_forge_specific(
Expand Down
18 changes: 0 additions & 18 deletions tests/test_lint_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -1917,24 +1917,6 @@ def test_recipe_v1_version_with_context(self):
lints, hints = linter.lintify_meta_yaml(meta, recipe_version=1)
assert any(lint.startswith(expected_message) for lint in lints)

def test_examples(self):
msg = (
"Please move the recipe out of the example dir and into its "
"own dir."
)
lints, hints = linter.lintify_meta_yaml(
{"extra": {"recipe-maintainers": ["support"]}},
recipe_dir="recipes/example/",
conda_forge=True,
)
self.assertIn(msg, lints)
lints = linter.lintify_meta_yaml(
{"extra": {"recipe-maintainers": ["support"]}},
recipe_dir="python",
conda_forge=True,
)
self.assertNotIn(msg, lints)

def test_multiple_sources(self):
lints = linter.main(
os.path.join(_thisdir, "recipes", "multiple_sources")
Expand Down

0 comments on commit a7424e3

Please sign in to comment.