Skip to content

(add) new --quiet and --silent flags#83

Open
my1e5 wants to merge 5 commits intoEbodShojaei:mainfrom
my1e5:copilot/add-quiet-silent-flags
Open

(add) new --quiet and --silent flags#83
my1e5 wants to merge 5 commits intoEbodShojaei:mainfrom
my1e5:copilot/add-quiet-silent-flags

Conversation

@my1e5
Copy link
Copy Markdown

@my1e5 my1e5 commented Mar 4, 2026

This PR adds --quiet/-q and --silent/-s flags to the format command, following the ruff convention.

 --quiet     -q            Suppress all output. With --check, print diagnostics but nothing else.                                                                             
 --silent    -s            Disable all logging (but still exit with status code '1' upon detecting diagnostics). 

Copilot AI and others added 3 commits March 4, 2026 15:58
Co-authored-by: my1e5 <10064103+my1e5@users.noreply.github.com>
…d reformat with --check

Co-authored-by: my1e5 <10064103+my1e5@users.noreply.github.com>
@my1e5
Copy link
Copy Markdown
Author

my1e5 commented Mar 4, 2026

For reference, this is how ruff handles logging for its format command:

$ ruff format
1 file reformatted

$ ruff format -q

$ ruff format -s

with --check

$ ruff format --check
Would reformat: main.py
1 file would be reformatted

$ ruff format --check -q
Would reformat: main.py

$ ruff format --check -s

$ ruff --version
ruff 0.15.4

@EbodShojaei
Copy link
Copy Markdown
Owner

Thank you @my1e5, this will be reviewed for next version release.

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

Successfully merging this pull request may close these issues.

3 participants