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

Replace `Warning` usage with appropriate specific warnings

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

@sadielbartholomew đang làm issue này rồi.

Từ ngày 23/2/2024.

Đánh giá

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

Mô tả

code hygiene

There are ~20 cases where a Warning is raised in the code:

$ pwd
/home/slb93/git-repos/cf-plot/cfplot
$ git grep "raise Warning" | wc -l
21

These should be made more specific to categorise them, notably in most cases it seems from a quick look that they should each be upgraded to a UserWarning to make it clear it isn't something dodgy about the environment or code, but rather a message to the user about the context of cf-plot and the underlying matplotlib usage, etc.

Ngôn ngữ chính
Python
Star
21
Fork
11
Merge trung bình
7 giờ 11 phút
Pull request đã merge (30 ngày)
1

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 NCAS-CMS/cf-plot

Tất cả issue của NCAS-CMS/cf-plot

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.