Skip to content

Conversation

aless10
Copy link
Contributor

@aless10 aless10 commented Aug 20, 2024

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:

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

@aless10 aless10 requested a review from jjdelc August 20, 2024 13:18
@aless10 aless10 changed the title [188043638] add pre commit hok [188043638] add pre commit hook Aug 21, 2024
@aless10 aless10 changed the title [188043638] add pre commit hook [SCRUN-1] add pre commit hook Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant