Schema and interactions for the central database entity related to the Fedora Badges system abstracted with libraries like SQLAlchemy, Alembic and Psycopg2.
This project utilizes the pre-commit tool to maintain code quality and consistency. Before submitting a pull request or making any commits, it is important to run the pre-commit tool to ensure that your changes meet the project's guidelines.
To run the pre-commit tool, follow these steps:
Install pre-commit by running the following command:
poetry install. It will not only install pre-commit but also install all the deps and dev-deps of project
Once pre-commit is installed, navigate to the project's root directory.
Run the command
pre-commit run --all-files. This will execute the pre-commit hooks configured for this project against the modified files. If any issues are found, the pre-commit tool will provide feedback on how to resolve them. Make the necessary changes and re-run the pre-commit command until all issues are resolved.
You can also install pre-commit as a git hook by execute
pre-commit install. Every time you made
git commit pre-commit run automatically for you.