-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- added pyproject.toml - added github workflow for lint and static analysis - use ruff and pyright - add a separate pip dep for dev Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
- Loading branch information
Showing
19 changed files
with
302 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Lint and Static Analysis | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- main.py | ||
- context_chat_backend/** | ||
- reqs.txt | ||
- reqs.dev | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- main.py | ||
- context_chat_backend/** | ||
- reqs.txt | ||
- reqs.dev | ||
|
||
jobs: | ||
analysis: | ||
runs-on: ubuntu-latest | ||
|
||
name: Lint and Static Analysis | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup python 3.11 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
cache: 'pip' | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install -r reqs.txt | ||
pip install -r reqs.dev | ||
- name: Lint with Ruff | ||
run: | | ||
ruff --output-format=github context_chat_backend main.py | ||
- name: Static analysis with pyright | ||
run: | | ||
pyright context_chat_backend main.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.