So I was running `pants fmt fix lint check` in CI ...
# development
c
So I was running
pants fmt fix lint check
in CI and now that I"m looking at that more closely I think this was not the right thing to do. • `fmt`: Formats code, returns zero when it does so. • `fix`:
fmt++
, returns zero. • `lint`: Checks code, returns non-zero on failurs. so
pants lint ::
will fail in CI, but
pants fmt fix lint ::
will always -- unless something blows up -- pass for anything auto-fixable. Do I have that right?
c
yes
you likely want to run
lint
and
check
along with
test
in CI…
c
(Whoops, I thought this was in #general )
b
You don't need to run
fmt
if you're running
fix
.
fix
runs formatters as well