Skip to content

Commit

Permalink
style: pre-commit code lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lpm0073 committed Jan 8, 2024
1 parent 307c1cc commit f6c7bb6
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 15 deletions.
1 change: 0 additions & 1 deletion .github/workflows/pullRequestController.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,3 @@ jobs:
python-version: "${{ env.python-version}}"
openai-api-organization: "${{ secrets.OPENAI_API_ORGANIZATION }}"
openai-api-key: "${{ secrets.OPENAI_API_KEY }}"

11 changes: 3 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repos:
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
rev: 7.0.0
hooks:
- id: flake8
- repo: https://github.com/PyCQA/isort
Expand Down Expand Up @@ -69,7 +69,7 @@ repos:
- id: check-merge-conflict
- id: debug-statements
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.10.0
rev: v9.11.0
hooks:
- id: commitlint
stages: [commit-msg]
Expand All @@ -82,10 +82,5 @@ ci:
autoupdate_branch: ""
autoupdate_commit_msg: "[pre-commit.ci] pre-commit autoupdate"
autoupdate_schedule: weekly
skip:
[
shellcheck,
markdown-link-check,
commitlint,
]
skip: [shellcheck, markdown-link-check, commitlint]
submodules: false
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ RUN pip install --no-cache-dir -r requirements.txt


# Run the application when the container launches
CMD ["python", "console.py"]
CMD ["python", "console.py"]
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

A Python "Hello World" application that also demonstrates the OpenAI API and usage of Docker.


## Requirements

- [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git). _pre-installed on Linux and macOS_
Expand Down
1 change: 1 addition & 0 deletions app/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Custom exceptions for the application."""


Expand Down
5 changes: 3 additions & 2 deletions app/hello_world.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
run: python3 -m app.hello_world "Chinese"
Expand All @@ -24,8 +25,8 @@ def hello_world(language: str = None):
messages = [
{
"role": "system",
"content": """You are a helpful assistant who speaks English, Spanish,
Italian, French, Gereman, Polish, Hebrew, Chinese, Mandarin, Japanese, Hindi, Russian,
"content": """You are a helpful assistant who speaks English, Spanish,
Italian, French, Gereman, Polish, Hebrew, Chinese, Mandarin, Japanese, Hindi, Russian,
Portuguese, Bengali, Urdu, Indonesian, Nigerian Pidgin, Marathi, Telugu, Turkish and Tamil.
You should respond with the correct, closest translation of "hello world" based on the language that the user
requests. Your response should be in the format: '[hello world translation] -- ([language])'.""",
Expand Down
1 change: 1 addition & 0 deletions app/settings.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Settings for the app."""

import os
Expand Down
Empty file added codespell.txt
Empty file.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@
"@semantic-release/release-notes-generator": "^12.1.0",
"typescript": "^5.2.2"
},
"dependencies": {
}
"dependencies": {}
}

0 comments on commit f6c7bb6

Please sign in to comment.