-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Primer acceptance tests like in black or mypy #4413
Comments
Unfortunately, it's easier said than done. Mypy has mypy_primer, black has black_primer. The difference is that both are focused on maintaining stability whereas we constantly add new things as well. I see it with Home Assistant where I do something similar just manually. It's a lot of effort just keeping the repos in sync, comparing new error messages, checking if they are intended or false-positives, updating the existing code and pushing the changes back to Home Assistant. What I'm trying to say: I would love it if we could automate it, just not sure it's actually possible / useful for our development cycle. Originally posted by @cdce8p in pylint-dev/astroid#1211 (comment) |
Ha, very true. But we can check that pylint is "not crashing". And I think we could check for the presence of error. There's a very slim possibility that there is a real error in a release of those very big libraries but I would bet on a pylint false positive or regression every time. And in particular if suddenly there's a ton of import-error or no-module-error because namespace packages are broken we would detect it. Originally posted by @Pierre-Sassoulas in pylint-dev/astroid#1211 (comment) |
I was going to say exactly that. Let's do it. |
I'm already finding crash which is encouraging (#5172). However I think we'll need to install the environment of the project for this to work pylint need to be able to import dependencies. Also we can't easily add project because |
I haven't looked at it closely yet, but from what I think, you're right: We'll need to install all import dependencies for each project. That's different to what
Not sure about that.
Thanks for doing this 🚀 I'm looking forward to it! |
Seeing mypy_primer, it's very evolved and it makes me want to fork it and adapt for pylint. There's a lot of project with a pylint configuration on github. |
If adapting |
Created this ticket following a discord and #4390 discussion with @cdce8p
The text was updated successfully, but these errors were encountered: