full-author-61014
03/06/2024, 10:15 AMlint
target, however this also runs all linters and I cannot distinguish whether any !=0 exit code stems from a linter or a formatter.curved-manchester-66006
03/06/2024, 3:44 PM--[no-]lint-skip-formatters
?
https://www.pantsbuild.org/2.18/reference/goals/lintfull-author-61014
03/06/2024, 3:52 PMskip_fixers
and skip_formatters
but I need skip_linters
.
It might sound confusing to run pants lint --lint-skip-linters
but as lint
runs linters as well as formatters/fixers this would make sense to me. Or is that possible and I overlooked something?curved-manchester-66006
03/06/2024, 4:57 PM--lint-only=[]
, albeit while manually making this listfull-author-61014
03/06/2024, 7:51 PM2.20.0rc0
now splits ruff into 2 lint parts: ruff-check
and ruff-format
. Together with your advice lint-only
I can achieve my goal:
pants lint --lint-only="['ruff-format']" <target>
Thanks!full-author-61014
03/07/2024, 2:32 PMpants lint --only="['ruff-format']" <target>