Skip to content

ruff format --check --silent still output the same log as with --quiet #17729

@lephuongbg

Description

@lephuongbg

Summary

I'm trying to set-up ruff format --check in precommit hook and would like it to only return an exit code, instead of outputting anything.

The description of ruff format --check --silent says "Disable all logging (but still exit with status code "1" upon detecting diagnostics)", which is what I need but when actually running it, it still shows "Would reformat: [filename]"

Version

0.11.7

Metadata

Metadata

Assignees

Labels

cliRelated to the command-line interfacehelp wantedContributions especially welcome

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions