Crunch-io / scrunch

Pythonic scripting library for cleaning data in Crunch
GNU Lesser General Public License v3.0
5 stars 7 forks source link

[188043638] add pre commit hook #467

Open aless10 opened 3 months ago

aless10 commented 3 months ago

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:

  1. pip install pre-commit
  2. pre-commit install
  3. pre-commit run --all-files to see that the hook is working

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