From 337d308296e34b774bdfff9c9542b6bccc8ac600 Mon Sep 17 00:00:00 2001 From: Dheepak Krishnamurthy Date: Mon, 14 Mar 2016 16:27:41 -0600 Subject: [PATCH 1/2] Remove --style flag from yapf The --style flag accepts different types of input. From their documentation - "accepts one of the predefined styles (e.g., pep8 or google), a path to a configuration file that specifies the desired style, or a dictionary of key/value pairs." By not explicitly specifying the --style flag, yapf will look for the following, in that order 1. In the [style] section of a .style.yapf file in either the current directory or one of its parent directories. 2. In the [yapf] secionf of a setup.cfg file in either the current directory or one of its parent directories. 3. In the ~/.config/yapf/style file in your home directory. --- src/beautifiers/yapf.coffee | 1 - 1 file changed, 1 deletion(-) diff --git a/src/beautifiers/yapf.coffee b/src/beautifiers/yapf.coffee index b82bc8d..9e44982 100644 --- a/src/beautifiers/yapf.coffee +++ b/src/beautifiers/yapf.coffee @@ -16,7 +16,6 @@ module.exports = class Yapf extends Beautifier beautify: (text, language, options) -> @run("yapf", [ "-i" - ["--style=pep8"] tempFile = @tempFile("input", text) ], help: { link: "https://github.com/google/yapf" From 632e90a8046eb005466598aa2e1b3291bb607c41 Mon Sep 17 00:00:00 2001 From: Dheepak Krishnamurthy Date: Mon, 14 Mar 2016 16:42:25 -0600 Subject: [PATCH 2/2] Updated CHANGELOG.md and package.json --- CHANGELOG.md | 1 + package.json | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 60dc625..a4f84f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ - Add [clang-format](http://clang.llvm.org/docs/ClangFormat.html) beautifier for C/C++/Obj-C languages. - Add [yapf](http://github.com/google/yapf) beautifier for Python. - Closes [#776] (https://github.com/Glavin001/atom-beautify/issues/776) Add support for `collapse-preserve-inline` brace_style for javascript. +- Closes [#786](https://github.com/Glavin001/atom-beautify/issues/786) YAPF configuration files are ignored. # v0.29.0 - Closes [#447](https://github.com/Glavin001/atom-beautify/issues/447). Improved Handlebars language support diff --git a/package.json b/package.json index 2edfbe3..ab09ae1 100644 --- a/package.json +++ b/package.json @@ -70,6 +70,10 @@ { "name": "Bati Sengul", "url": "https://github.com/Focus" + }, + { + "name": "Dheepak Krishnamurthy", + "url": "https://github.com/kdheepak89" } ], "engines": {