TRAIS-Lab / dattri

`dattri` is a PyTorch library for developing, benchmarking, and deploying efficient data attribution algorithms.
https://trais-lab.github.io/dattri/
MIT License
28 stars 8 forks source link

Add pre-commit and CONTRIBUTING.md #37

Closed jiaqima closed 4 months ago

jiaqima commented 4 months ago

Description

1. Motivation and Context

Add pre-commit hooks to streamline local tests.

2. Summary of the change

In addition to common pre-commit hooks, currently only added ruff check and ruff format in .pre-commit-config.yaml. darglint is too slow so it was omitted here.

Also added a boilerplate-ish CONTRIBUTING.md to explain how to use pre-commit hooks.