This PR wants to add pre-commit hooks to improve the codebase and checks for errors.
This is intended to be run using python3.11 so that we start moving to a newer version of python.
However, the precommit hooks does not change the files in a way that the py2 version is not working.
How to reproduce:
pip install pre-commit
pre-commit install
pre-commit run --all-files to see that the hook is working
There are some checks that are run during commit:
debug statements
end of file fixer
ruff linter and formatter (with --check flag so that no changes are made in the files)
On push, we run the tests with pytest.
I am going to create another PR to fix all the error that are highlighted when running pre-commit run --all-files.
This PR wants to add pre-commit hooks to improve the codebase and checks for errors. This is intended to be run using python3.11 so that we start moving to a newer version of python. However, the precommit hooks does not change the files in a way that the py2 version is not working.
How to reproduce:
pip install pre-commit
pre-commit install
pre-commit run --all-files
to see that the hook is workingThere are some checks that are run during commit:
On push, we run the tests with pytest.
I am going to create another PR to fix all the error that are highlighted when running pre-commit run --all-files.