django / django-asv

Benchmarks for Django using asv
MIT License
40 stars 12 forks source link

Added pre-commit #18

Closed smithdc1 closed 2 years ago

smithdc1 commented 2 years ago

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 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.