aboutsummaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
AgeCommit message (Collapse)Author
2022-08-03MLIA-389 Enable bandit check in pre-commitDiego Russo
Add bandit to pre-commit and fix some bandit errors. We use the default security level (low) with few exceptions: * B101 assert_use: apart of tests, we use assert in our codebase hence we globally ignore error B101. * B404/B603: these are errors related to subprocesse and they are being ignored locally when used. * B604 Test for any function with shell equals true: we have disabled this locally because of its safe use in the tests. Change-Id: If654e5e92285f7c86ac210a6f1373dbab6be17c9
2022-07-20MLIA-529 Add pre-commit configurationRaul Farkas
- Add pre-commit configuration file that is used to run a series of hooks on the codebase. - Update setup.cfg to include required pre-commit library when installing MLIA with the [dev] extra require. Change-Id: I8e88cd2bae98c03c20a70a320e82d2eb38ce127c