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

Add lint --skip-formatters option #15427

Merged
merged 1 commit into from May 12, 2022

Conversation

Eric-Arellano
Copy link
Contributor

Closes #14460.

[ci skip-rust]
[ci skip-build-wheels]

# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
Copy link
Member

@thejcannon thejcannon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woot woot!

default=False,
help=softwrap(
f"""
If true, skip running all formatters in check-only mode.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just call it "lint mode"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps? I think lint is generally not super well understood and it might be a tautology? I'm thinking check-only mode may be clearer.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My only heartburn comes from the fact that Pants has a check goal. check-if-changed mode?

turbo minor feel free to drop :)

@Eric-Arellano Eric-Arellano enabled auto-merge (squash) May 12, 2022 20:31
@Eric-Arellano Eric-Arellano merged commit 007c06d into pantsbuild:main May 12, 2022
@Eric-Arellano Eric-Arellano deleted the skip-formatters branch May 12, 2022 22:02
@Eric-Arellano
Copy link
Contributor Author

Oh wait, dang it. This should probably be called --skip-fixers if #13504 and #13504 (comment) happens. Wdyt?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lint --skip-formatters
2 participants