anomaly / anomaly/lab-python-server

Research merits of absolute vs relative imports

Đang mở
#18 0 bình luận 0 reaction 1 người được giao Được @devraj nhận Xem trên GitHub
enhancement
Ngôn ngữ chính
Python
Star
16
Fork
4
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Because this is meant to be template for other projects, most of the imports in the handlers are relative (to avoid referencing the `labs.`), this has its own challenges when it comes to referencing across packages e.g `routers` talking to `models`.

While both approaches have their pros and cons, the aim of this exercise is to research and make best practices recommendations for python projects at Anomaly.

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

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

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.