Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add linting for pip build backend #2039

Merged
merged 18 commits into from
Aug 22, 2024
Merged

feat: add linting for pip build backend #2039

merged 18 commits into from
Aug 22, 2024

Conversation

beckermr
Copy link
Member

@beckermr beckermr commented Aug 22, 2024

Checklist

  • Added a news entry
  • Regenerated schema JSON if schema altered (python conda_smithy/schema.py)

@beckermr beckermr marked this pull request as ready for review August 22, 2024 14:40
@beckermr beckermr requested a review from a team as a code owner August 22, 2024 14:40
@beckermr
Copy link
Member Author

@conda-forge/core This PR is ready for review!

news/TEMPLATE.rst Outdated Show resolved Hide resolved
@beckermr
Copy link
Member Author

pre-commit.ci autofix

Co-authored-by: Uwe L. Korn <xhochy@users.noreply.github.com>
@beckermr
Copy link
Member Author

Test failure is for coveralls and not related to this PR. going to merge.

@beckermr beckermr merged commit 5c18d51 into main Aug 22, 2024
1 of 2 checks passed
@beckermr beckermr deleted the lint-pip branch August 22, 2024 19:26
@@ -185,3 +206,15 @@ def _lint_package_version(version: Optional[str]) -> Optional[str]:
VersionOrder(ver)
except InvalidVersionSpec as e:
return invalid_version.format(ver=ver, err=e)


@lru_cache(maxsize=1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the lifetime of this cache? I'm not too sure how the linter is currently set up, but if it's a long-running deployment, that would basically mean we have to redeploy to pick up changes in the hints.toml from the pinning repo...?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. We should use something like this (https://stackoverflow.com/a/63674816), though I think that specific code has edge cases when it could avoid them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants