diff --git a/.github/workflows/pullRequestController.yml b/.github/workflows/pullRequestController.yml index eeb34bf..519ac9b 100644 --- a/.github/workflows/pullRequestController.yml +++ b/.github/workflows/pullRequestController.yml @@ -118,4 +118,3 @@ jobs: python-version: "${{ env.python-version}}" openai-api-organization: "${{ secrets.OPENAI_API_ORGANIZATION }}" openai-api-key: "${{ secrets.OPENAI_API_KEY }}" - diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6a35f72..358b764 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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] @@ -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 diff --git a/Dockerfile b/Dockerfile index b22ac19..4e518a1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,4 +17,4 @@ RUN pip install --no-cache-dir -r requirements.txt # Run the application when the container launches -CMD ["python", "console.py"] \ No newline at end of file +CMD ["python", "console.py"] diff --git a/README.md b/README.md index dc8586d..1562329 100644 --- a/README.md +++ b/README.md @@ -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_ diff --git a/app/exceptions.py b/app/exceptions.py index 5bb7028..1a6a3db 100644 --- a/app/exceptions.py +++ b/app/exceptions.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """Custom exceptions for the application.""" diff --git a/app/hello_world.py b/app/hello_world.py index 0212fd1..1d99372 100644 --- a/app/hello_world.py +++ b/app/hello_world.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ run: python3 -m app.hello_world "Chinese" @@ -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])'.""", diff --git a/app/settings.py b/app/settings.py index fc79aa2..2238f78 100644 --- a/app/settings.py +++ b/app/settings.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """Settings for the app.""" import os diff --git a/codespell.txt b/codespell.txt new file mode 100644 index 0000000..e69de29 diff --git a/package.json b/package.json index 6935940..abd74ff 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,5 @@ "@semantic-release/release-notes-generator": "^12.1.0", "typescript": "^5.2.2" }, - "dependencies": { - } + "dependencies": {} }