hscgavin / autopep8-on-pycharm Goto Github PK
View Code? Open in Web Editor NEWSet up autopep8 on Pycharm, it neatens up Python code to match PEP 8.
Set up autopep8 on Pycharm, it neatens up Python code to match PEP 8.
I've set it up according to instructions but I am getting
/Users/euphorbium/miniconda3/bin/autopep8 --in-place --aggressive
usage: autopep8 [-h] [--version] [-v] [-d] [-i] [--global-config filename]
[--ignore-local-config] [-r] [-j n] [-p n] [-a]
[--experimental] [--exclude globs] [--list-fixes]
[--ignore errors] [--select errors] [--max-line-length n]
[--line-range line line] [--hang-closing]
[files [files ...]]
autopep8: error: incorrect number of arguments
I had configured as what the instruction said, and it worked normally with the files under the local directory. However, I tried to use autopep8 when I was working under iCloud directory, i.e. /Users/user/Library/Mobile Documents/com~apple~CloudDocs/
, the following error occurs:
/usr/local/bin/autopep8 --in-place --aggressive --aggressive /Users/user/Library/Mobile Documents/com~apple~CloudDocs/try.py
[Errno 2] No such file or directory: '/Users/user/Library/Mobile'
[Errno 2] No such file or directory: 'Documents/com~apple~CloudDocs/try.py'
which I think the terminal misunderstood the directory, since usually a directory with spaces involved is typed as Mobile\ Documents
.
Can anyone help me to solve this?
(Nevertheless, in the configuration of External Tools in Pycharm, the path is automatically set by an argument $FilePath$
, which I think may be we should ask for Pycharm to modify this somehow?)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.