Fix mypy (#2204)
* 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:
parent
45c2f8a9b6
commit
8ccb9e7597
20 changed files with 40 additions and 59 deletions
19
.github/workflows/lint-py.yml
vendored
19
.github/workflows/lint-py.yml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue