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

Fix abs path pylint #248

Merged
merged 11 commits into from
May 23, 2018

Conversation

chocoelho
Copy link
Contributor

@chocoelho chocoelho commented Apr 20, 2018

Prospector has an issue with absolute paths, since using the current approach would produce an invalid package path, e.g., /home/xpto/file.py would become home/xpto/file.py due to how the split is handled on prospector/tools/pylint/__init__.py#L114.

With the following change, it can easily handle both relative and absolute paths gracefully. Also, pylint plugins were removed due to the reason that it shouldn't be prospector concern to have pylint plugins that depend upon other frameworks such as Django or Flask. Resolves #245.

@chocoelho chocoelho force-pushed the fix-abs-path-pylint branch from da02f66 to 6522182 Compare May 18, 2018 17:40
@chocoelho chocoelho requested a review from carlio May 18, 2018 21:04
Mock argv before calling ProspectorConfig in tests
@chocoelho chocoelho force-pushed the fix-abs-path-pylint branch from 8504e0c to e66b1a2 Compare May 18, 2018 22:27
Signed-off-by: Carlos Coêlho <[email protected]>
@chocoelho chocoelho force-pushed the fix-abs-path-pylint branch from 2796ab1 to 12e1436 Compare May 23, 2018 15:10
@chocoelho chocoelho merged commit 8dacb92 into prospector-dev:develop May 23, 2018
@chocoelho chocoelho deleted the fix-abs-path-pylint branch May 23, 2018 15:13
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.

1 participant