This adds a pre-commit configuration. To use this you install pre-commit python -m pip install pre-commit and then install the hooks pre-commit install. Then each time you commit a file the linters will run and autofix any errors (if there are errors you'll need to commit again).
Once this is merged I'll look at adding the ci service too. This will keep the versions uptodate and if we push with lint errors then they should get autofixed too! So if you don't manage to get this running locally, don't worry as the service should fix them.
Hi @deepakdinesh1123
This adds a pre-commit configuration. To use this you install pre-commit
python -m pip install pre-commit
and then install the hookspre-commit install
. Then each time you commit a file the linters will run and autofix any errors (if there are errors you'll need to commit again).Once this is merged I'll look at adding the ci service too. This will keep the versions uptodate and if we push with lint errors then they should get autofixed too! So if you don't manage to get this running locally, don't worry as the service should fix them.