In this section we will cover how to set up common tools for the whole project.
Pre-commit is used for ensuring code quality before it gets commited. When installing pre-commit hooks a check will be triggered before commiting, according to the rules specified in .pre-commit-config.yaml
. If the check fails the commit won't be submitted.
pip install -r requirements-global.txt
pre-commit install
pre-commit install --hook-type commit-msg
If you want to test pre-commit before commiting to the repository run the following command:
pre-commit run --all-files
- Open the project Backend or Frontend (each one has its own recommended extensions)
- Go to extensions section on sidebar
- Select filter extensions
- Recommended
- Workspace recommended
- Install workspace recommended