Only use --check-locked
if linting in CI
#816
Merged
--check-locked
if linting in CI
#816