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

Absolute file path for output #36

Closed
christophlsa opened this issue Jun 16, 2015 · 7 comments
Closed

Absolute file path for output #36

christophlsa opened this issue Jun 16, 2015 · 7 comments

Comments

@christophlsa
Copy link

Feature Request:
Can you provide an option to output the absolute file path of the files?

Problem:
We use PyCharm for the python development. There you can run external tools like pylama. In the settings you can add a filter for the filepath, linenumber and column. This create clickable links to the files in the output of the external tools. Unfortunately this works only if the filepath is absolute.

Is it possible to add this option?

@simonweil
Copy link

👍
Would love to have this too.

@klen
Copy link
Owner

klen commented Aug 17, 2015

I've some time at this morning and append --abspath/-a option to pylama-6.4.0. Hope it helps.

@klen klen closed this as completed Aug 17, 2015
@christophlsa
Copy link
Author

@klen Works perfectly, ty. :)

@simonweil
Copy link

@christophlsa how did you setup PyCharm to use pylama?

@christophlsa
Copy link
Author

@simonweil I created a new "external tool" in the configuration. See the screenshot for the configuration (I added the options to a configuration file). In the second screenshot you can see the output filter.

Regex: $FILE_PATH$:$LINE$:$COLUMN$:.*

screenshot 2015-09-01 16 41 00
screenshot 2015-09-01 16 41 22

@simonweil
Copy link

@christophlsa thank you very much!
Do you know if it is possible to make it run automatically when code changes?

@andrei-shabanski
Copy link

@simonweil You may install VCS hook pylama --hook. This works with git and mercurial

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

4 participants