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.

Mock argv before calling ProspectorConfig in tests
Signed-off-by: Carlos Coêlho <carlospecter@gmail.com>
@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