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

Autodetect output format based on environment variables. #15614

Open
MichaReiser opened this issue Jan 20, 2025 · 1 comment
Open

Autodetect output format based on environment variables. #15614

MichaReiser opened this issue Jan 20, 2025 · 1 comment
Labels
cli Related to the command-line interface

Comments

@MichaReiser
Copy link
Member

MichaReiser commented Jan 20, 2025

a thought: instead of needing to set RUFF_OUTPUT_FORMAT: github in GitHub Actions, ruff could check the env var GitHub itself sets and use the correct output format:

GITHUB_ACTIONS: Always set to true when GitHub Actions is running the workflow. You can use this variable to differentiate when tests are being run locally or by GitHub Actions.

similarly, GitLab sets GITLAB_CI. Azure isn't so clearcut, maybe TF_BUILD

Originally posted on discord (link)

@MichaReiser MichaReiser added the cli Related to the command-line interface label Jan 20, 2025
@Avasam
Copy link
Contributor

Avasam commented Jan 20, 2025

As long as it can still be overridden, having a smart dynamic default sounds like a nice improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Related to the command-line interface
Projects
None yet
Development

No branches or pull requests

2 participants