hundreds-carpet-28072
02/29/2024, 1:02 PMblack and isort? In other words, are there lint violations for these tools that don’t have fmt equivalents that can be auto-resolved?
Second question, are there performance benefits to be gained by excluding tools from linting e.g. pants lint --lint-only=isort (no black) that have already been run with pants fmt? Or are these violation check results reused between lint and fmt and fix ?better-van-82973
02/29/2024, 1:10 PMblack and isort it looks like there is only a format rule - this is the same rule that’s run as part of the lint goal:
https://github.com/pantsbuild/pants/blob/main/src/python/pants/backend/python/lint/black/rules.py#L111
https://github.com/pantsbuild/pants/blob/main/src/python/pants/backend/python/lint/isort/rules.py#L65
So whether you run fmt or lint with these tools, it’s the same command being run underneathhundreds-carpet-28072
02/29/2024, 1:19 PMpants fmt and pants lint are being run for these tools?better-van-82973
02/29/2024, 1:31 PMcurved-television-6568
02/29/2024, 3:44 PMhundreds-carpet-28072
02/29/2024, 3:45 PMblack being cached and shared between pants lint and pants fmt? Unless that’s what you mean when you say “inputs are the same”?curved-television-6568
02/29/2024, 3:47 PMlint and fmt doesn't come into play, but the command line and input files, env vars etc to run black.hundreds-carpet-28072
02/29/2024, 3:49 PMpants lint that are already being run previously by pants fmt ?curved-television-6568
02/29/2024, 3:49 PMcurved-television-6568
02/29/2024, 3:49 PMhundreds-carpet-28072
02/29/2024, 3:51 PMlint then `fmt`…
Thanks for this, clears it up for me.curved-television-6568
02/29/2024, 3:51 PM