Skip to content

Fix abs path pylint#248

Merged
chocoelho merged 11 commits into
prospector-dev:developfrom
vintasoftware:fix-abs-path-pylint
May 23, 2018
Merged

Fix abs path pylint#248
chocoelho merged 11 commits into
prospector-dev:developfrom
vintasoftware:fix-abs-path-pylint

Conversation

@chocoelho

@chocoelho chocoelho commented Apr 20, 2018

Copy link
Copy Markdown
Contributor

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 <carlospecter@gmail.com>
@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