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

option to output absolute pathnames of reported files #227

Open
mcooperman opened this issue Sep 6, 2020 · 1 comment
Open

option to output absolute pathnames of reported files #227

mcooperman opened this issue Sep 6, 2020 · 1 comment

Comments

@mcooperman
Copy link

Using vulture as an External Tool with PyCharm.
a linter, such as Flake8, outputs reported issues with absolute pathnames to the files. These are 'clickable' in the PyCharm Run UI, to jump directly to the related code.
vulture (after testing outside of pycharm as well) seems to only output relative paths from the cwd without a leading /
it appears that PyCharm relies on detecting paths in the Run output with the starting / (e.g. absolute path), for external tools anyway (Pylint has a more complex integration).
if vulture had a command line option to tell it to output absolute paths, that would be helpful.
I'd be happy to contribute.

@jendrikseipp
Copy link
Owner

Thanks for the report! Ideally, I'd like to find a solution that works for multiple editors. Do you know which format would be required for other popular editors (https://insights.stackoverflow.com/survey/2019#development-environments-and-tools)?

Are you sure flake8 uses absolute paths? Or does it come with an option for this? For me flake8 3.8.1 shows relative paths.

mcooperman added a commit to mcooperman/vulture that referenced this issue Sep 12, 2020
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

No branches or pull requests

2 participants