Skip to content

Commit

Permalink
Adjustments due to pre-commit GA
Browse files Browse the repository at this point in the history
  • Loading branch information
pamella committed Jun 11, 2024
1 parent 77a0f33 commit b4f069f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,21 @@ jobs:
with:
python-version: "3.12"

- name: Install Django dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Install Node dependencies
run: |
npm install
working-directory: ./frontend

- name: Run pre-commit
uses: pre-commit/action@v3.0.1
4 changes: 2 additions & 2 deletions django_ai_assistant/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


class AssistantSchema(Schema):
id: str
id: str # noqa: A003
name: str


Expand Down Expand Up @@ -42,5 +42,5 @@ class ThreadMessageTypeEnum(str, Enum):


class ThreadMessagesSchemaOut(Schema):
type: ThreadMessageTypeEnum
type: ThreadMessageTypeEnum # noqa: A003
content: str
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ exclude = [
"node_modules",
"venv",
"virtualenvs",
"*/migrations/*",
]
ignore = [
# Disable eradicate (commented code removal)
Expand Down

0 comments on commit b4f069f

Please sign in to comment.