Consider `import-linter` or another way to document the overall architecture

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

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

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
30/100
Loại issue
Tài liệu
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python

Hướng nghiên cứu

Trước tiên, hãy xem xét cấu trúc package pins và các layer import-linter được đề xuất. Được xem là hoàn tất khi đã chọn và lập tài liệu về một cách tiếp cận kiến trúc, trong đó các quan hệ phụ thuộc либо được import-linter và pre-commit thực thi, hoặc được ghi lại trong một sơ đồ hay tài liệu thay thế.

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

Mô tả

.documentation .maint

For new contributors, having some documentation of the overall pins-python package structure could be helpful.

In particular, it is helpful to get an idea of the dependency relationships between modules. import-linter allows you to declare and enforce a layered architecture; for example for pins-python, the configuration could be declared as:

[tool.importlinter]
root_packages = ["pins"]

[[tool.importlinter.contracts]]
name = "pins Modular Design"
type = "layers"
layers = [
    "constructors",
    "boards",
    "drivers",
    "meta | cache | rsconnect",
    "versions | utils",
    "config | errors | _types | data",
]
containers = "pins"
exhaustive = true

The idea is that that higher layers in the list can import from lower layers in the list, but not vice versa; and modules in the same level separated by | cannot import each other either.

Alternatively, I think having a diagram or other form of documentation would be quite helpful. However, import-linter has the advantage of enforcing the structure (potentially via pre-commit); whereas documentation can become out of date.

Ngôn ngữ chính
Python
Star
59
Fork
11
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 rstudio/pins-python

Tất cả issue của rstudio/pins-python

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.