Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Ignore methods and functions by decorator #179

Open
bentheiii opened this issue Oct 14, 2021 · 1 comment
Open

Ignore methods and functions by decorator #179

bentheiii opened this issue Oct 14, 2021 · 1 comment

Comments

@bentheiii
Copy link

We'd like the option to ignore functions marked with certain decorators. This is mostly useful for services and frameworks, where certain decorators can mark a function as a route or option, and the docstring has special meanings.

@terrencepreilly
Copy link
Owner

That seems reasonable. There's a similar flag, --ignore-regex, which allows you to ignore functions which match a given regex. Perhaps something similar could be added for decorators? (Like, --decorator-ignore-regex, or something.) Feel free to open a PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants