From 502e97eea333130869c42014212a750834d334ff Mon Sep 17 00:00:00 2001 From: Konstantin Krestnikov Date: Tue, 8 Oct 2024 14:46:41 +0300 Subject: [PATCH] . --- .github/workflows/_lint.yml | 32 ++++++++++++++++---------------- libs/community/Makefile | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/_lint.yml b/.github/workflows/_lint.yml index affb28eb9e995..264dfa6eb81b1 100644 --- a/.github/workflows/_lint.yml +++ b/.github/workflows/_lint.yml @@ -71,14 +71,14 @@ jobs: run: | poetry run pip install -e "$LANGCHAIN_LOCATION" - # - name: Get .mypy_cache to speed up mypy - # uses: actions/cache@v4 - # env: - # SEGMENT_DOWNLOAD_TIMEOUT_MIN: "2" - # with: - # path: | - # ${{ env.WORKDIR }}/.mypy_cache - # key: mypy-lint-${{ runner.os }}-${{ runner.arch }}-py${{ inputs.python-version }}-${{ inputs.working-directory }}-${{ hashFiles(format('{0}/poetry.lock', inputs.working-directory)) }} + - name: Get .mypy_cache to speed up mypy + uses: actions/cache@v4 + env: + SEGMENT_DOWNLOAD_TIMEOUT_MIN: "2" + with: + path: | + ${{ env.WORKDIR }}/.mypy_cache + key: mypy-lint-${{ runner.os }}-${{ runner.arch }}-py${{ inputs.python-version }}-${{ inputs.working-directory }}-${{ hashFiles(format('{0}/poetry.lock', inputs.working-directory)) }} - name: Analysing the code with our lint @@ -105,14 +105,14 @@ jobs: run: | poetry install --with test,test_integration - # - name: Get .mypy_cache_test to speed up mypy - # uses: actions/cache@v4 - # env: - # SEGMENT_DOWNLOAD_TIMEOUT_MIN: "2" - # with: - # path: | - # ${{ env.WORKDIR }}/.mypy_cache_test - # key: mypy-test-${{ runner.os }}-${{ runner.arch }}-py${{ inputs.python-version }}-${{ inputs.working-directory }}-${{ hashFiles(format('{0}/poetry.lock', inputs.working-directory)) }} + - name: Get .mypy_cache_test to speed up mypy + uses: actions/cache@v4 + env: + SEGMENT_DOWNLOAD_TIMEOUT_MIN: "2" + with: + path: | + ${{ env.WORKDIR }}/.mypy_cache_test + key: mypy-test-${{ runner.os }}-${{ runner.arch }}-py${{ inputs.python-version }}-${{ inputs.working-directory }}-${{ hashFiles(format('{0}/poetry.lock', inputs.working-directory)) }} - name: Analysing the code with our lint working-directory: ${{ inputs.working-directory }} diff --git a/libs/community/Makefile b/libs/community/Makefile index e16d995820075..5ef873526611d 100644 --- a/libs/community/Makefile +++ b/libs/community/Makefile @@ -45,7 +45,7 @@ lint_tests: PYTHON_FILES=tests lint_tests: MYPY_CACHE=.mypy_cache_test lint lint_diff lint_package lint_tests: - rm -rf $(MYPY_CACHE) + poetry install --with lint,typing --sync ./scripts/check_pydantic.sh . ./scripts/lint_imports.sh . ./scripts/check_pickle.sh .