Comments (2)
@MH-ABE - hi, the format of property yapf.args
should be like the following
"yapf.args": ["--style", "{based_on_style: pep8, indent_width: 2}"]
cause I use IO stream to format code, equal to type xxx.py | yapf
or cat xxx.py | yapf
, the args based_on_style = google
will be recognized as a filename. Similar as CMD in Dockerfile. Or you can use other config file like pyproject.toml
from vscode-extension-yapf.
Thanks @EeyoreLee, that fixed it!
from vscode-extension-yapf.
Related Issues (20)
- Format Selection is formatting the entire file HOT 5
- "ALLOW_MULTILINE_DICTIONARY_KEYS" flag no longer working HOT 1
- Something has gone awry with extension installed on Remote HOT 1
- [Feature Request] I hope to add a command to generate a yapf configuration file. HOT 1
- Newline is added to empty files causing PEP8 warning W391 HOT 4
- Path to .style.yapf HOT 5
- Yapf formatter with devcontainers not sticking HOT 3
- Range Formatting HOT 6
- Trailing empty line added to end of file / notebook cell HOT 4
- Python 3.7 is not supported HOT 2
- Formatting will be break for jupyter on `FormatOnType` mode if there are some magic function
- The "yapf" extension is configured to format programs, but not "Python"-files. HOT 6
- Cannot start server HOT 3
- Cannot handle new 3.12 f-strings, hangs up completely HOT 6
- Formatter is constantly formatting HOT 5
- The new version format: {year}.{month}.1{day}{hour}{minute}{second} HOT 1
- Yapf formatting on type instead of on save HOT 4
- Keep getting the message "there is no formatter for 'python' files installed" HOT 3
- SyntaxError for a Python 3.7 conda environment HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-extension-yapf.