Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

`compatibility_hints.py` should be split up

Đang mở
#778 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
32/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python, yaml
Lĩnh vực
api

Hướng nghiên cứu

The work centers on compatibility_hints.py, which mixes the hint lookup and default-derivation framework, the hint definitions, and the database of known server implementations. Read the two comments first, since the issue leaves open whether the data should move to YAML, and that choice decides the shape of the split. Done means the three concerns live in separate modules, with the data format settled and agreed in the thread.

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

Mô tả

compatibility refactoring

I thought there existed an issue on this already, but apparently not.

compatibility_hints.py today consists of three things:

  • framework for handling the hints and the database (looking up, defaults, derivation of implicit values based on parent/children nodes, etc)
  • the definitions of the compatibility hints
  • the "database" of known server implementations

Those should probably be split up in three different files. Or at least the first should be cleaned away.

The hint definitions and compatibility database should further be rewritten in a way that it's nice-looking and easy to read, even for someone that doesn't understand python. (maybe it shouldn't be python? Maybe it should be yaml?)

Ngôn ngữ chính
Python
Star
412
Fork
113
Merge trung bình
22 giờ 15 phút
Pull request đã merge (30 ngày)
44

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của python-caldav/caldav

Tất cả issue của python-caldav/caldav

Issue tương tự

Thêm issue về Python

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.