Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ignore] property doesn't work #45

Open
ZM-J opened this issue Nov 22, 2024 · 4 comments
Open

[ignore] property doesn't work #45

ZM-J opened this issue Nov 22, 2024 · 4 comments

Comments

@ZM-J
Copy link

ZM-J commented Nov 22, 2024

Hi y'all!

I just tried this project (after darglint) and tried the [ignore] option to disable some s by following README.md, but what were supposed to be ignored were not be ignored though.

Moreover, when I tried to pass this option to CLI command as a parameter:

poetry run darglint2 --ignore "DAR104" --verbosity 2 my_project

I got such an error:

usage: darglint2 [-h] [--message-template MESSAGE_TEMPLATE] [--ignore-regex IGNORE_REGEX] [--ignore-raise IGNORE_RAISE] [--ignore-properties] [--raise-syntax] [--verbosity {1,2}] [--version]
                 [--no-exit-code] [--list-errors] [-s {google,sphinx,numpy}] [-z {short,long,full}] [-e ENABLE] [--indentation INDENTATION] [--log-level {CRITICAL,ERROR,WARNING,INFO,DEBUG}]
                 [files ...]
darglint2: error: ambiguous option: --ignore could match --ignore-regex, --ignore-raise, --ignore-properties

Could anyone tell me how to apply this option correctly?

@akaihola
Copy link
Owner

I don't think there's an --ignore command line option or an [ignore] configuration file option. Have you found these in the documentation?

@ZM-J
Copy link
Author

ZM-J commented Nov 25, 2024

@ZM-J
Copy link
Author

ZM-J commented Nov 25, 2024

I have to admit that there isn't an --ignore command line option, but I really wanna use this feature to ignore some (overly strict) errors.

@akaihola
Copy link
Owner

Thanks for the suggestion @ZM-J. I'm only maintaining this forked package and accepting bug fix contributions. If you're able to implement an --ignore option, I'll be happy to accept the Pull Request.

As a better option, I suggest you take a look at one of the recommended superior alternatives instead of darglint2.

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

No branches or pull requests

2 participants