Skip to content

Commit 5b30d84

Browse files
authoredMar 10, 2025··
ci: Add pre-commit hook (#2194)
* make dev life nicer - pre-commit hooks * add pre-commit to install * update precommit * update ruff pre-commit * lint * lint --------- Co-authored-by: sam021313 <[email protected]>
1 parent 02003b1 commit 5b30d84

File tree

715 files changed

+113783
-110468
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

715 files changed

+113783
-110468
lines changed
 

‎.github/pull_request_template.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929
- [ ] I have checked that the performance is neither trivial (both models gain close to perfect scores) nor random (both models gain close to random scores).
3030
- [ ] If the dataset is too big (e.g. >2048 examples), considering using `self.stratified_subsampling() under dataset_transform()`
3131
- [ ] I have filled out the metadata object in the dataset file (find documentation on it [here](https://github.com/embeddings-benchmark/mteb/blob/main/docs/adding_a_dataset.md#2-creating-the-metadata-object)).
32-
- [ ] Run tests locally to make sure nothing is broken using `make test`.
33-
- [ ] Run the formatter to format the code using `make lint`.
32+
- [ ] Run tests locally to make sure nothing is broken using `make test`.
33+
- [ ] Run the formatter to format the code using `make lint`.
3434

3535

3636
### Adding a model checklist
37-
<!--
37+
<!--
3838
When adding a model to the model registry
3939
see also https://github.com/embeddings-benchmark/mteb/blob/main/docs/reproducible_workflow.md
4040
-->
@@ -43,4 +43,4 @@ see also https://github.com/embeddings-benchmark/mteb/blob/main/docs/reproducibl
4343
- [ ] I have ensured that my model can be loaded using
4444
- [ ] `mteb.get_model(model_name, revision)` and
4545
- [ ] `mteb.get_model_meta(model_name, revision)`
46-
- [ ] I have tested the implementation works on a representative set of tasks.
46+
- [ ] I have tested the implementation works on a representative set of tasks.

‎.github/workflows/docs.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Create table
4848
run: |
4949
make build-docs
50-
50+
5151
- name: Push table
5252
run: |
5353
git config --global user.email "github-actions[bot]@users.noreply.github.com"
@@ -60,4 +60,3 @@ jobs:
6060
git commit -m "Update tasks table"
6161
git push
6262
fi
63-

0 commit comments

Comments
 (0)