Recommended autoformatters?
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- python
- Lĩnh vực
- documentation
Hướng nghiên cứu
Bắt đầu trong docs/writing/style.rst tại phần đề cập hiện có đến autopep8, sau đó xem lại phần so sánh được liên kết giữa autopep8, black và yapf. Cập nhật tài liệu Code Style với hướng dẫn về các formatter này cùng một khuyến nghị hoặc phép so sánh rõ ràng; phần này cần giải thích cách các nhà phát triển có thể chọn một autoformatter.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
In the Code Style document https://github.com/realpython/python-guide/blob/master/docs/writing/style.rst there's a small mention of autopep8 which can be used to format code to meet PEP8 standards. But there's at least two other autoformatters (black and yapf) which are as good if not better. There's a blog comparing the three here: https://medium.com/3yourmind/auto-formatters-for-python-8925065f9505
The gist of it is: autopep8 is the most conservative, black is the most opinionated, and yapf is somewhere in between depending on how you configure it.
Should the python guide have an opinion on which auto formatters should be used? In addition to the current mention of autopep8. I think it would be good to expand this section; auto formatters are quite useful and of great interest to developers coming from tools like gofmt and prettier.
- Ngôn ngữ chính
- Batchfile
- Star
- 29.8k
- Fork
- 5.9k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của realpython/python-guide
-
Page 404 error Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
realpython/python-guide#1104 · 2 bình luận ·
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 62/100
realpython/python-guide#327 ·
-
PyZMQ improvements Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
realpython/python-guide#326 · 5 bình luận ·
-
@alex Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
realpython/python-guide#1194 ·
-
Development Team SAP Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
realpython/python-guide#1192 ·
Tất cả issue của realpython/python-guide
Issue tương tự
-
Link Checker Report Đang mởautomated issue report
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
felladrin/uo-is-not-dead#176 · 1 bình luận ·
-
Add link for tutorial Đang mởdocumentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
Qiskit/qiskit-addon-sqd#376 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Seeed-Studio/wiki-documents#5655 · 2 bình luận ·
-
[Page] Utiliser NFS sur Linux Đang mởtype:content-error
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
stephrobert/blog-roadmap#15 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100