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

Enable ruff-formatter alongside ruff #13

Closed
jaraco opened this issue Dec 22, 2023 · 1 comment
Closed

Enable ruff-formatter alongside ruff #13

jaraco opened this issue Dec 22, 2023 · 1 comment

Comments

@jaraco
Copy link
Owner

jaraco commented Dec 22, 2023

In jaraco/skeleton#101, I'm exploring replacing black with ruff formatter. For part of that change, I'd like for the formatter in pytest-ruff to be enabled by default by way of this enabler.

I acknowledge that this change will be substantially backward-incompatable (enforcing formatting where it wasn't previously). However, it is the spirit of this plugin to enable best practices by default and since skeleton is switching, it makes sense for it to be enabled by default.

@jaraco
Copy link
Owner Author

jaraco commented Dec 22, 2023

To restore the prior behavior, add this to a project's pyproject.toml:

[tool.pytest-enabler.ruff]
addopts = "--ruff"

@jaraco jaraco closed this as completed in 74b9ed0 Dec 23, 2023
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

No branches or pull requests

1 participant