Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ jobs:

- name: Install dependencies
run: |
uv sync --group lint
make install
uv sync --group linting

- name: Lint
id: lint
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/typechecking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:

- name: Install dependencies
run: |
make install
uv sync --group typing --extra leaderboard

- name: Build and Deploy
Expand Down
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ install-for-tests:

lint:
@echo "--- 🧹 Running linters ---"
ruff format . # running ruff formatting
ruff check . --fix --exit-non-zero-on-fix # running ruff linting # --exit-non-zero-on-fix is used for the pre-commit hook to work
typos
uv run --no-sync ruff format . # running ruff formatting
uv run --no-sync ruff check . --fix --exit-non-zero-on-fix # running ruff linting # --exit-non-zero-on-fix is used for the pre-commit hook to work
uv run --no-sync typos

lint-check:
@echo "--- 🧹 Check is project is linted ---"
# Required for CI to work, otherwise it will just pass
ruff format . --check
ruff check .
typos --diff
uv run --no-sync ruff format . --check
uv run --no-sync ruff check .
uv run --no-sync typos --diff

test:
@echo "--- 🧪 Running tests ---"
Expand Down Expand Up @@ -94,4 +94,4 @@ check: ## Run code quality tools.
.PHONY: typecheck
typecheck:
@echo "--- 🔍 Running type checks ---"
mypy mteb
uv run --no-sync mypy mteb
Loading