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

Selectively suppress formatting changes #185

Open
gadenbuie opened this issue Jan 17, 2025 · 0 comments
Open

Selectively suppress formatting changes #185

gadenbuie opened this issue Jan 17, 2025 · 0 comments

Comments

@gadenbuie
Copy link
Contributor

ruff format supports # fmt: off, # fmt: on and # fmt: skip pragma comments to selectively disable the formatter. (https://docs.astral.sh/ruff/formatter/#format-suppression)

It'd be neat if air supported a similar system for selective disabling formatting, which might look like this:

# fmt: off
private$event_callback_counts[[domain]] <- private$event_callback_counts[[domain]] - 1
# fmt: on

private$event_callback_counts[[domain]] <- private$event_callback_counts[[domain]] + 1 # fmt: skip
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