From 22a037294a9900e6bc6e4a56941ba709041e6394 Mon Sep 17 00:00:00 2001 From: Logan <logan.markewich@live.com> Date: Sat, 6 Jan 2024 18:47:02 -0600 Subject: [PATCH] Remove extra linting steps (#9878) --- .github/workflows/lint.yml | 4 ++-- .pre-commit-config.yaml | 2 +- Makefile | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9b892dc5fb..c4974244c3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -29,9 +29,9 @@ jobs: uses: snok/install-poetry@v1 with: version: ${{ env.POETRY_VERSION }} - - name: Install deps + - name: Install pre-commit shell: bash - run: poetry install --with dev + run: poetry run pip install pre-commit - name: Run linter shell: bash run: poetry run make lint diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6f9329703c..5dadc0771b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -45,7 +45,7 @@ repos: "types-redis", "types-setuptools", "types-PyYAML", - "types-protobuf", + "types-protobuf==4.24.0.4", ] exclude: ^(docs/|llama_index/_static) - repo: https://github.com/psf/black-pre-commit-mirror diff --git a/Makefile b/Makefile index d35d30f748..ac837c0bc5 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,6 @@ format: ## Run code autoformatters (black). lint: ## Run linters: pre-commit (black, ruff, codespell) and mypy pre-commit install && pre-commit run --all-files --show-diff-on-failure - mypy . test: ## Run tests via pytest. pytest tests -- GitLab