This issue is a place to suggest additional static analysis rules (e.g. for ruff or mypy) that we would find useful, that are not currently listed in our recommended ruff config or recommended mypy config.
I'm not sure the best way to proceed with adopting additional rules, since doing an actions release just to update the README feels a bit cumbersome. I also don't want to feel compelled to update the ruff config in all of our repos every time we add a new rule. Maybe just a bumpless merge into develop to update the README, and then incorporating the additional rules into individual repos as we see fit?
Anyway, this issue can serve as a list of proposed rule additions for now. Anyone should feel free to edit this list to add more.
Ruff
Mypy
Other
This issue is a place to suggest additional static analysis rules (e.g. for ruff or mypy) that we would find useful, that are not currently listed in our recommended ruff config or recommended mypy config.
I'm not sure the best way to proceed with adopting additional rules, since doing an actions release just to update the README feels a bit cumbersome. I also don't want to feel compelled to update the ruff config in all of our repos every time we add a new rule. Maybe just a bumpless merge into
developto update the README, and then incorporating the additional rules into individual repos as we see fit?Anyway, this issue can serve as a list of proposed rule additions for now. Anyone should feel free to edit this list to add more.
Ruff
blanket
noqacomments: https://docs.astral.sh/ruff/rules/blanket-noqa/unused arguments: https://docs.astral.sh/ruff/rules/#flake8-unused-arguments-arg
mutable default arguments:
swaths: list = [1, 2, 3]Mypy
Other
exceptstatements; see Error handling for burst2safe--extentoption doesn't work as intended burst2safe#129unreachable-codefeature astral-sh/ruff#9463return Noneastral-sh/ruff#6334