-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Hello!
I think a great addition to this library would be an allowed_noqa config option (name fungible 😆), which allows a project lead to specify a global set of noqa comments that are allowed. This gives a dedicated place for notes and comments to developers regarding how those specific whitelisted noqa items can be used.
config.ini
allowed_noqa =
# Relative Imports. Never for top-of-file imports in normal code. Only where relative imports
# makes natural sense.
ABS101
# Missing a :raises: section. Addresses limitation by darglint. Never to suppress legitimate
# lack of documentation. Only for `raise`-ing a variable.
DAR401
# Function name not lowercase. Never to purposefully violate naming standards. Only
# for when overriding existing method names from library code.
N802All other noqa comments would be flagged by this plugin. I think this is useful because code review does not capture everything, and having a central location that explains the purpose of each noqa could be helpful.
If I'm missing a Flake feature that already does something like that- my bad and please let me know!
ivanlonel
Metadata
Metadata
Assignees
Labels
No labels