atom-community / atom-community/ide-python

How to configure autopep8?

Đang mở
#135 7 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
238
Fork
40
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách so sánh hành vi của `Code Format: Format Code` với CLI autopep8 và đầu ra của `python -m pyls --help`. Ghi lại cấu hình nào kiểm soát việc định dạng, cách cấu hình và lý do các lỗi pycodestyle có thể vẫn còn; được xem là hoàn tất khi một người mới có thể làm theo các bước đã được ghi lại để có được định dạng như mong đợi.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
documentation, tooling
Loại issue
Tài liệu
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.