conda-incubator / conda-project

Tool for encapsulating, running, and reproducing projects with Conda environments
https://conda-incubator.github.io/conda-project/
BSD 3-Clause "New" or "Revised" License
28 stars 11 forks source link

Disable progress bar #169

Open JeanChristopheMorinPerso opened 1 month ago

JeanChristopheMorinPerso commented 1 month ago

Hello, while running the conda project lock command in a GitHub Actions workflow, I noticed that the progress bar was still doing its thing as it I was running it with a proper terminal emulator.

This results in hundreds of log line line these:

Locking dependencies for environment default on platforms linux-64, linux-aarch64, osx-arm64: ◜ 
Locking dependencies for environment default on platforms linux-64, linux-aarch64, osx-arm64: ◠ 
Locking dependencies for environment default on platforms linux-64, linux-aarch64, osx-arm64: ◝ 
Locking dependencies for environment default on platforms linux-64, linux-aarch64, osx-arm64: ◞ 
Locking dependencies for environment default on platforms linux-64, linux-aarch64, osx-arm64: ◡ 

Is there a way to disable this progress bar? I couldn't find any way to disable that in the code, but maybe I'm missing something?

Thanks!

AlbertDeFusco commented 1 month ago

I'll add a check for os.isatty() there

AlbertDeFusco commented 1 month ago

and also a --quiet flag