-
Notifications
You must be signed in to change notification settings - Fork 248
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
Mix packages and modules in command line parameters for Pylint #818
Comments
Hi. Thanks for the report. Although I'm quite confused about what this is. Are you reporting a bug in the PyBuilder PyLint plugin (https://github.com/pybuilder/pybuilder/blob/master/src/main/python/pybuilder/plugins/python/pylint_plugin.py)? |
Nevermind, I reread and I think I understood what you meant. Let me see if I can fix it quickly. |
Actually no. This is not a bug and the behavior is correct and expected.
Please observe here that modules are |
Let me see what the actual |
Nevermind. It is a bug. I'll fix it. |
PyLint is renovated, unit and integration tests are added fixes pybuilder#818
PyLint is renovated, unit and integration tests are added fixes pybuilder#818
Sorry if my explanation of problem was unclear and confusing. |
Once it deploys please let me know if the solution works for you. There were additional output changes. |
@oleg-babintsev please test the changes and let me know if they work for you. |
@arcivanov Yes, sure. I can test it on Monday and will definitely report the result |
@oleg-babintsev Thanks! You'll need to install with |
@arcivanov I tested it and now it works properly for previous cases.
And we execute pylint with argument 'a.b' the following error occurs:
I'm not talking about is such package correct or not, I'm only describe current behaviour of pylint.
I think that variants 2 or 3 more flexible for support any structure of project. |
This seems like a typo, no: |
@arcivanov Yes, its typo in message, not in real test. |
So would you prefer we rather switch to files (option 2)? |
I think yes, because that variant works properly right now. |
Also switch to ExecuteCommand fixes pybuilder#818
Also switch to ExecuteCommand fixes pybuilder#818
@oleg-babintsev please try again with |
@oleg-babintsev could you please check the latest version ASAP? I'd like to release .3. |
@arcivanov Yes, give me 5 minutes if you can |
@arcivanov Yes, its works.
But the main goal (properly code validation) achived. |
Glad it works! You're welcome, thanks for helping to sort this out! |
Pylint is meant to be called from the command line. The usage is
You shoud passed modules OR packages. If you pass mix of modules and packages you should check that its not intercect between each other, because Pylint searches modules in packages and we got double messages in report (can live with it) or code duplication message in bad case (its a problem).
Test project (https://drive.google.com/file/d/13n1RZFdgwitfgUDOv76ZMYOPIrBYVsAT/view?usp=sharing):
Run pyb analyze -X:
Report:
If I execute Pylint and pass only modules or only packages - all works great.
pylint 'a' 'b'
:pylint 'a.module' 'a.b.module' 'b.module'
:The text was updated successfully, but these errors were encountered: