fix: Don't print banner in quiet mode (#2097)

* fix: do not print banner in quiet mode

Resolves #2089

* typo(contributing.md): everyones -> everyone's
This commit is contained in:
Cornelius Roemer 2022-11-08 08:40:59 +01:00 committed by GitHub
parent 424a18e3bb
commit 26be4b6272
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,7 @@ discuss the change you wish to make via issue, email, or any other method with
the owners of this repository before making a change.
We welcome all kinds of contribution -- code or non-code -- and value them
highly. We pledge to treat everyones contribution fairly and with respect and
highly. We pledge to treat everyone's contribution fairly and with respect and
we are here to help awesome pull requests over the finish line.
Please note we have a code of conduct, and follow it in all your interactions with the project.

View File

@ -877,6 +877,7 @@ def _wrapped_main(*args, **kwargs):
if (
not found_no_banner
and os.isatty(sys.stdout.fileno())
and not context.quiet
and not ("MAMBA_NO_BANNER" in os.environ or parsed_args.cmd in ("list", "run"))
):
print(banner, file=sys.stderr)