Skip to content

Commit

Permalink
Sync linter versions for llm-app (#5849)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 4d69b316c7fb2ac15331c343dda9e8a4a92ce57a
  • Loading branch information
embe-pw authored and Manul from Pathway committed Mar 5, 2024
1 parent d69a192 commit 045e15c
Show file tree
Hide file tree
Showing 6 changed files with 289 additions and 29 deletions.
35 changes: 13 additions & 22 deletions .github/workflows/python-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,19 @@ jobs:
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
python-version: 3.11
- name: Install poetry
uses: abatilo/actions-poetry@v3
- name: Install linters
run: |
pip install "black==23.*" \
"flake8==6.1.*" \
"isort==5.*" \
"mypy==1.5.*" \
toml \
types-requests \
pytest
- name: run black
run: |
black --check .
- name: run Flake8
run: |
flake8 .
- name: run mypy
run: |
mypy .
- name: run isort
run: |
isort --check .
run: poetry install --no-root --only linters
- name: Run black
run: poetry run black --check .
- name: Run Flake8
run: poetry run flake8 .
- name: Run mypy
run: poetry run mypy .
- name: Run isort
run: poetry run isort --check .
1 change: 1 addition & 0 deletions examples/pipelines/contextful_s3/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
To call the REST API:
curl --data '{"user": "user", "query": "How to connect to Kafka in Pathway?"}' http://localhost:8080/ | jq
"""

import os

import pathway as pw
Expand Down
5 changes: 3 additions & 2 deletions examples/pipelines/demo-question-answering/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,9 @@ def prompt_aggregate(question, answers):

def run(
with_cache: bool = True,
cache_backend: pw.persistence.Backend
| None = pw.persistence.Backend.filesystem("./Cache"),
cache_backend: pw.persistence.Backend | None = pw.persistence.Backend.filesystem(
"./Cache"
),
):
webserver = pw.io.http.PathwayWebserver(host=host, port=port)
# Vectorserver
Expand Down
1 change: 1 addition & 0 deletions examples/pipelines/local/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
To call the REST API:
curl --data '{"user": "user", "query": "How to connect to Kafka in Pathway?"}' http://localhost:8080/ | jq
"""

import os

import pathway as pw
Expand Down
Loading

0 comments on commit 045e15c

Please sign in to comment.