atom-community / atom-community/ide-python

How to configure autopep8?

未关闭
#135 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
238
派生
40
PR 合并指标
30 天内没有已合并 PR

描述

Hi, I am trying to use autopep8 but it doesn't work as I was expecting. When doing `Code Format: Format Code` some parts of my code are formatted and others aren't. I tried the autopep8 command in CLI and it formatted a lot more my code which is what I was looking for. I also tried using atom-beautify and it also did a lot more formatting.

So, I would like to know:
1) Why isn't ide-python formatting as much as autopep8 on CLI or atom-beautify?
2) Is there a configuration that is preventing ide-python to do this?
3) Is there a configuration file I should change (or create) to have the formatting I would like?

I am fairly new to autopep8 and I haven't used much this package but I think there should be a little more documentation on these topics as someone new to them. I feel a little lost on what steps to take to have this package working as I'd like.

Notes:
`python -m pyls --help` shows the desired output
I'm on macOS 10.13.6
Atom version 1.29.0
When seeing a Python file in Atom, pycodestyle shows a lot of errors that aren't corrected by the autopep8 setting.

贡献指南

打开贡献指南

调研方向

首先,将 `Code Format: Format Code` 的行为与 autopep8 CLI 以及 `python -m pyls --help` 的输出进行比较。记录控制格式化的配置、配置方法,以及 pycodestyle 错误可能仍然存在的原因;当新贡献者能够按照文档中的步骤获得预期的格式化结果时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
documentation, tooling
Issue 类型
文档
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。