Atom-beautify: Where to config `Python autopep8 path`?

Created on 26 Jan 2015  路  8Comments  路  Source: Glavin001/atom-beautify

I cannot find it in package settings page (Atom v0.175).
Should I put it in the .jsbeautifyrc? Could anyone give me an example? Thanks!

question

Most helpful comment

that atom-beautify config.cson file document you have linked is dead. any way to view it again? I have to manually add my path for autopep8 as well

All 8 comments

It will be called python_autopep8_path.

I would recommend setting the path from Atom Beautify Package settings, it's much easier and tailed to your computer's setup.
See https://github.com/Glavin001/atom-beautify/blob/master/lib/language-options.coffee#L273-L277 and https://github.com/Glavin001/atom-beautify/blob/master/lib/langs/python-beautify.coffee#L5

Got it, I should put it in config.cson. Thanks!
It would be better if documentation include this.

There are many, many options to be documented (see https://github.com/Glavin001/atom-beautify/blob/master/lib/language-options.coffee#L68-L384 ) so I opted to add documentation and more details in with each of the options. So at any time you can view your Atom Beautify Package settings and see those options. Improving documentation ( #58 ) is on my list of TODOs. Thanks for asking questions and helping me understand what is missing and needs improvement!

Sounds great! Thank you for building and maintaining such an awesome package.

that atom-beautify config.cson file document you have linked is dead. any way to view it again? I have to manually add my path for autopep8 as well

I too apparently need to manually add this path to autopep8, I'm assuming to the config.cson, how do I do this?

is it like this:
python_autopep8_path:"C:\\Python27\\ArcGIS10.4\\Scripts\\"

It doesn't look like autopep8 beautifier is configurable right now: https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/autopep8.coffee#L18

This is something I'd like to address in a future release. However, if your PATH environment variable is configured properly it should automatically detect autopep8 without changing Atom-Beautify's code itself.

Fedora installs autopep8 for Python 3 as python3-autopep8. After fixing the hardcoded command in autopep8.coffee and rebuilding, the beautifying works.
Maybe this strengthens the case for a configurable autopep8 command?

Was this page helpful?
0 / 5 - 0 ratings