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

Option to be quiet in passing check mode? #81

Open
dhalperi opened this issue Nov 19, 2020 · 1 comment
Open

Option to be quiet in passing check mode? #81

dhalperi opened this issue Nov 19, 2020 · 1 comment

Comments

@dhalperi
Copy link

dhalperi commented Nov 19, 2020

We run autoflake with -c -r, so it checks every Python file in the repo in check mode. Our CI output looks like this:

+ autoflake -cr --remove-all-unused-imports --remove-unused-variables
--
  | No issues detected!
  | No issues detected!
  | No issues detected!
<snip hundreds of lines>
...

Our ideal behavior in check mode would be:

  • print problems to stderr
  • exit code set if any issues
  • silence for no issues

Is there a way to accomplish this? (From looking at the code, seems that the print happens unconditionally in check mode).

If not, do you have suggestions about the user-friendliest way to add a way to accomplish it? I would be happy to make the patch.

@edvardm
Copy link
Contributor

edvardm commented May 7, 2021

Noticed only now, created #90 for exactly this purpose.

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