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

chore: use Lychee pre-commit hook #193

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

Conversation

agriyakhetarpal
Copy link
Member

@agriyakhetarpal agriyakhetarpal commented Sep 9, 2024

CI time is not a concern for our website, so even if our linter takes thirty seconds instead of five, that should be fine

Copy link

netlify bot commented Sep 9, 2024

Deploy Preview for pybamm-developer-preview failed.

Name Link
🔨 Latest commit 9842478
🔍 Latest deploy log https://app.netlify.com/sites/pybamm-developer-preview/deploys/6776e89d31b77d0008a48d92

@agriyakhetarpal
Copy link
Member Author

Strange, works fine locally

Copy link
Member

@arjxn-py arjxn-py left a comment

Choose a reason for hiding this comment

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

Thanks @agriyakhetarpal, it also doesn't show that for which specific link it is failing for. Is it something it'll show like previous workflow?

@agriyakhetarpal
Copy link
Member Author

Yes, it would show which link it would fail for, but it doesn't run with https://pre-commit.ci, so the links were not checked with this commit.

@agriyakhetarpal
Copy link
Member Author

agriyakhetarpal commented Sep 10, 2024

https://pre-commit.com/#rust

Looks like this is an issue worth reporting in lycheeverse/lychee upstream: it works with pre-commit locally and would do so with a GHA setup, but it doesn't work with https://pre-commit.ci. I'm not sure if I have the time to prepare a proper report and investigate right now. Would you like to do that, @arjxn-py?

@arjxn-py
Copy link
Member

arjxn-py commented Sep 10, 2024

https://pre-commit.com/#rust

Looks like this is an issue worth reporting in lycheeverse/lychee upstream: it works with pre-commit locally and would do so with a GHA setup, but it doesn't work with https://pre-commit.ci. I'm not sure if I have the time to prepare a proper report and investigate right now. Would you like to do that, @arjxn-py?

Sure @agriyakhetarpal, thanks for pinging. Would be happy to do that.

@agriyakhetarpal agriyakhetarpal marked this pull request as draft January 2, 2025 19:56
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.

2 participants