Semi-verbose flag that shows which files mypy analyzes
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Python
- Star
- 20.6k
- Fork
- 3.3k
- Chỉ số merge pull request
- Chỉ số pull request đang chờ
Mô tả
Sometimes (example: #6385) it's useful to be able to see exactly which files mypy is processing. Currently the only way is to use -v and grep stderr for the word "Parsing".
Maybe this is common enough that we could spare a new command-line flag? It would print all the files for which a BuildSource object is created, and all the files that are reached by following imports (with some indicator of which is which).
The order in which files are printed should reflect the order in which they are processed (not the order in which they are specified).
I wouldn't mind adding extra info for each file (e.g. whether its cache entry is used), as long as it remains a single line per file.
Presumably there's also value in printing certain failures, e.g. modules which can't be found but for which no error message is printed (e.g. through --follow-imports=silent). But I would stop here.
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.
Hướng nghiên cứu
Bắt đầu bằng cách lần theo đầu ra hiện có của -v, đầu ra này báo cáo "Parsing" trên stderr, sau đó kiểm tra nơi các đối tượng BuildSource được tạo và nơi các import được theo dõi. Hoàn thành khi một flag dòng lệnh mới in một dòng cho mỗi file được chỉ định trực tiếp hoặc được import, theo thứ tự xử lý, kèm một chỉ báo phân biệt hai trường hợp; hãy xác minh đầu ra bằng các lần chạy mypy tiêu biểu.
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
- cli, tooling
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100