-
Notifications
You must be signed in to change notification settings - Fork 57
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
Run Linters in Pipeline / Actions #158
Comments
See here: https://github.com/django-crispy-forms/crispy-tailwind/actions/runs/7828342050/job/21358001447 Latest successful run, Python 3.12. Linters are executed. That corresponds to the workflow file:
For me, we only need to run these for a single Python version. So LGTM, I'd say. |
Hi @carltongibson! Thanks for the explanation! That's a novel setup to me! I was discussing in another ticket that an HTML linter might come in handy, therefore I looked a the setup. So a couple of thoughts/question here:
Best |
My preference is to keep configs in the tox file. The workflows just then call out to that. I'm not a fan of putting everything via pre-commit, though I know others think differently. I'd rather not shift to ruff. It's controlled by a VC funded private company, and (as nice as the folks might be) the bill for that will become due one day. I would rather use community tools. I'm not quite sure what you have in mind for the other points... Like, maybe 😅 — I think the idea with the current setup is to avoid running the linter step redundantly for every Python version. (Once is enough there) |
Good point. I would still do it differently but see your point. We keep it as it is.
That's true. Ok, we stick with it for now.
Sorry 😅 Here's a screenie of "my" setup. The linting just runs intependently of the unittests and I don't need the if-condition, still it only runs once per pipeline. |
Yeah, if you can simplify, let's have it! 👍 |
Great, so I'll sum up:
Thx @carltongibson for your input! ❤️ |
Not sure I did much. 😅 Thanks for your energy @GitRon 🎁 |
I completely agree 💯 Thank you! |
Hi @smithdc1 and @carltongibson
am I wrong or don't we validate the linting rules in our CI pipeline?
There is something in the per-pyhton-version setup but apparently, it's not being executed.
Futhermore, linting should / can be checked version-independly, right?
What's your take on this?
Best
Ronny
The text was updated successfully, but these errors were encountered: