Adding Sensitive data check in pre-commit check will check whether the sensitive data have been accidently been included for example an api key. While the linting check will check if the code follows correct linting format.