Request to re-evaluate options for #1273

Đang mở
#2,062 4 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
cli, tooling

Hướng nghiên cứu

Start by reviewing issue #1273 and the current CLI behavior described here. Compare the proposed flag names and determine how one invocation should select special rules while disabling noqa only for them; done means the behavior is agreed and no longer requires two flake8 runs.

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

Mô tả

describe the request

Hi - thanks for the project!

In some projects I work in, we have a bunch of flake8 rules, but a few "extra special please dont turn off" rules which we run with --disable-noqa. Currently, this process requires running flake8 twice, once flake8 then again flake8 --disable-noqa --select MYRULE1.

I found this old issue which I think looked to solve this #1273. I wonder if y'all see value in revisiting this as a seperate CLI flag --disable-noqa-select or --select-disable-noqa (or whatever!) to prevent the need to do this dual-running.

The initial author did mention

I'd be happy to convert this to a separate option if the risk is unacceptable, but this felt cleaner and more user-friendly to me.

but I dont think that was ever explored.

Happy to work on this issue if there is appetite!

Ngôn ngữ chính
Python
Star
3.8k
Fork
362
Merge trung bình
3 giờ 50 phút
Pull request đã merge (30 ngày)
7

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 PyCQA/flake8

Tất cả issue của PyCQA/flake8

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.