* mypy github action

* fix endpoints.py mypy lint

* directly run poetry run mypy

* line based mypy error suppression

* switch to use make lint

* fix ruff issues

* fix EmbedComponent lint

* fix prompt.py's lint
This commit is contained in:
ming 2024-06-18 13:52:54 -04:00 committed by GitHub
commit 8ccb9e7597
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 40 additions and 59 deletions

View file

@ -32,21 +32,6 @@ jobs:
run: |
poetry env use ${{ matrix.python-version }}
poetry install
- name: Get .mypy_cache to speed up mypy
uses: actions/cache@v4
make lint
env:
SEGMENT_DOWNLOAD_TIMEOUT_MIN: "2"
with:
path: |
./.mypy_cache
key: ${{ runner.os }}-mypy-${{ hashFiles('**/pyproject.toml') }}
- name: Run linters
uses: wearerequired/lint-action@v2
with:
github_token: ${{ secrets.github_token }}
# Enable linters
git_email: "gabriel@langflow.org"
mypy: true
mypy_args: '--namespace-packages -p "langflow"'
mypy_command_prefix: "poetry run"
GITHUB_TOKEN: ${{ secrets.github_token }}