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

Enable B905 (zip-without-explicit-strict) linting rules

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

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

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

Đánh giá

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

Hướng nghiên cứu

The issue references PR #6904 which enabled flake8-bugbear but excluded rule B905. First, locate the linting configuration (likely .ruff.toml or pyproject.toml) to see the current exclusions. Then, find all instances of zip() calls in the codebase flagged by B905, review each to decide whether strict=True or strict=False is appropriate, and update them accordingly. Run the linter to verify the changes.

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

Mô tả

https://github.com/mozilla/bugbug/pull/6904#discussion_r4066628444

PR #6904 enables most of flake8-bugbear ("B"), but excludes B905 (zip() without explicit strict=). The autofix defaults every flagged call to strict=False, which just preserves old behavior — but per @suhaibmujahid's review, each site should be reviewed individually, since strict=True is usually the better choice unless strict=False is intentionally needed.

Ngôn ngữ chính
Python
Star
570
Fork
351
Merge trung bình
2 ngày 1 giờ
Pull request đã merge (30 ngày)
72

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 mozilla/bugbug

Tất cả issue của mozilla/bugbug

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.