Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⬆️ (poetry.lock): upgrade dependencies to latest versions for improved stability and performance #799

Merged
merged 5 commits into from
Jan 27, 2025

Conversation

kyaukyuai
Copy link
Owner

@kyaukyuai kyaukyuai commented Jan 26, 2025

⬆️ (poetry.lock): upgrade dependencies to latest versions

Upgrade several dependencies to their latest versions to ensure
compatibility, security, and access to new features. This includes
updating packages like orjson, pillow, pre-commit, prompt-toolkit,
pydantic, pydantic-settings, pygments, pymdown-extensions, pypdf,
python-semantic-release, ruff, selenium, and smmap. These updates
address potential vulnerabilities, improve performance, and provide
enhancements introduced in the newer versions.

⬆️ (poetry.lock): upgrade dependencies to latest versions

Upgrade SQLAlchemy to 2.0.37, Starlette to 0.45.3, Tree-sitter to 0.24.0,
Tzdata to 2025.1, Virtualenv to 20.29.1, and Wrapt to 1.17.2. Add
Zstandard 0.23.0. These updates ensure compatibility with newer Python
versions, improve performance, and incorporate bug fixes.

Summary by CodeRabbit

  • リファクタ: Pythonのバージョンを3.10から3.12にアップグレードしました。これにより、パフォーマンスが向上し、新しいPythonの機能を利用できるようになります。
  • リファクタ: mypyの設定を変更し、エラーコードの表示と結果の見やすさを改善しました。
  • リファクタ: GitHub Actionsのワークフローを更新し、Poetryのインストールと設定を改善しました。
  • リファクタ: poetry lockコマンドに--no-updateオプションを追加し、依存関係の更新を防ぐようにしました。
  • テスト: テスト結果のアップロードステップが常に実行されるようになりました。

@kyaukyuai kyaukyuai self-assigned this Jan 26, 2025
…d stability and performance

⬆️ (poetry.lock): upgrade dependencies to latest versions

Upgrade several dependencies to their latest versions to ensure
compatibility, security, and access to new features. This includes
updating packages like orjson, pillow, pre-commit, prompt-toolkit,
pydantic, pydantic-settings, pygments, pymdown-extensions, pypdf,
python-semantic-release, ruff, selenium, and smmap. These updates
address potential vulnerabilities, improve performance, and provide
enhancements introduced in the newer versions.

⬆️ (poetry.lock): upgrade dependencies to latest versions

Upgrade SQLAlchemy to 2.0.37, Starlette to 0.45.3, Tree-sitter to 0.24.0,
Tzdata to 2025.1, Virtualenv to 20.29.1, and Wrapt to 1.17.2. Add
Zstandard 0.23.0. These updates ensure compatibility with newer Python
versions, improve performance, and incorporate bug fixes.
… TOML format and enhance type checking

Switch mypy configuration from INI to TOML format for better structure and flexibility. Update Makefile to use the new mypy.toml file and include additional options for improved error reporting. Add type stubs for external libraries in pyproject.toml to enhance type checking accuracy.
Copy link

github-actions bot commented Jan 27, 2025

Image description CodeRabbit

Walkthrough

このプルリクエストでは、Pythonのバージョンアップ、mypyの設定変更、GitHub Actionsのワークフローの改善、依存関係の更新防止など、プロジェクトの品質とパフォーマンスを向上させるための一連の変更が行われています。

Changes

ファイル 変更の概要
Makefileと.github/workflows/ci.yml Pythonのバージョンを3.10から3.12にアップグレードし、mypyの設定を変更し、GitHub Actionsのワークフローを改善し、依存関係の更新を防止するための変更が行われました。

🐇

さあ、新しい変更を歓迎しましょう、

コードはより良く、より強くなります、

バージョンアップと設定の変更、

これら全てが我々の成長を助けます! 🎉


Uplevel your code reviews with CodeRabbit Pro

CodeRabbit Pro

If you like this project, please support us by purchasing the Pro version. The Pro version has advanced context, superior noise reduction and several proprietary improvements compared to the open source version. Moreover, CodeRabbit Pro is free for open source projects.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description CodeRabbit

Commits Files that changed from the base of the PR and between 27a4e4b and d828e97 commits.
Files selected (1)
  • Makefile (1)
Files ignored due to filter (4)
  • mypy.ini
  • mypy.toml
  • poetry.lock
  • pyproject.toml
Review comments generated (1)
  • Review: 0
  • LGTM: 1

Tips

Chat with Image description CodeRabbit Bot (@coderabbitai)

  • Reply on review comments left by this bot to ask follow-up questions. A review comment is a comment on a diff or a file.
  • Invite the bot into a review comment chain by tagging @coderabbitai in a reply.

Code suggestions

  • The bot may make code suggestions, but please review them carefully before committing since the line number ranges may be misaligned.
  • You can edit the comment made by the bot and manually tweak the suggestion if it is slightly off.

Pausing incremental reviews

  • Add @coderabbitai: ignore anywhere in the PR description to pause further reviews from the bot.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description CodeRabbit

Commits Files that changed from the base of the PR and between d828e97 and b9366b3 commits.
Files selected (1)
  • .github/workflows/ci.yml (2)
Files ignored due to filter (1)
  • mypy.toml
Review comments generated (2)
  • Review: 0
  • LGTM: 2

Tips

Chat with Image description CodeRabbit Bot (@coderabbitai)

  • Reply on review comments left by this bot to ask follow-up questions. A review comment is a comment on a diff or a file.
  • Invite the bot into a review comment chain by tagging @coderabbitai in a reply.

Code suggestions

  • The bot may make code suggestions, but please review them carefully before committing since the line number ranges may be misaligned.
  • You can edit the comment made by the bot and manually tweak the suggestion if it is slightly off.

Pausing incremental reviews

  • Add @coderabbitai: ignore anywhere in the PR description to pause further reviews from the bot.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description CodeRabbit

Commits Files that changed from the base of the PR and between b9366b3 and a951076 commits.
Files selected (1)
  • .github/workflows/ci.yml (1)
Review comments generated (5)
  • Review: 5
  • LGTM: 0

Tips

Chat with Image description CodeRabbit Bot (@coderabbitai)

  • Reply on review comments left by this bot to ask follow-up questions. A review comment is a comment on a diff or a file.
  • Invite the bot into a review comment chain by tagging @coderabbitai in a reply.

Code suggestions

  • The bot may make code suggestions, but please review them carefully before committing since the line number ranges may be misaligned.
  • You can edit the comment made by the bot and manually tweak the suggestion if it is slightly off.

Pausing incremental reviews

  • Add @coderabbitai: ignore anywhere in the PR description to pause further reviews from the bot.

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description CodeRabbit

Pythonのバージョンが3.10から3.12に更新されました。これにより、最新のPythonの機能を利用できるようになります。

-          python-version: '3.10'
+          python-version: '3.12'

Comment on lines +18 to +24
sudo apt-get update
pip install --upgrade pip
pip install "poetry==1.8.5"
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
poetry lock --no-update
poetry install

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description CodeRabbit

依存関係のインストール手順が更新され、Poetryの設定が改善されました。また、poetry lockコマンドに--no-updateオプションが追加され、依存関係の更新を防ぐようになりました。

-          sudo apt-get update &&
-          pip install poetry &&
-          poetry lock &&
-          poetry install
+          sudo apt-get update
+          pip install --upgrade pip
+          pip install "poetry==1.8.5"
+          poetry config virtualenvs.create true
+          poetry config virtualenvs.in-project true
+          poetry lock --no-update
+          poetry install

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description CodeRabbit

Pythonのバージョンが3.10から3.12に更新されました。これにより、最新のPythonの機能を利用できるようになります。

-          python-version: '3.10'
+          python-version: '3.12'

Comment on lines +42 to +48
sudo apt-get update
pip install --upgrade pip
pip install "poetry==1.8.5"
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
poetry lock --no-update
poetry install

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description CodeRabbit

依存関係のインストール手順が更新され、Poetryの設定が改善されました。また、poetry lockコマンドに--no-updateオプションが追加され、依存関係の更新を防ぐようになりました。

-          sudo apt-get update &&
-          pip install poetry &&
-          poetry lock &&
-          poetry install
+          sudo apt-get update
+          pip install --upgrade pip
+          pip install "poetry==1.8.5"
+          poetry config virtualenvs.create true
+          poetry config virtualenvs.in-project true
+          poetry lock --no-update
+          poetry install

with:
name: pytest-results
path: junit/test-results.xml
if: ${{ always() }}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description CodeRabbit

テスト結果のアップロードステップが常に実行されるようになりました。これにより、テストが失敗した場合でもテスト結果を確認できます。

-        # Use always() to always run this step to publish test results when there are test failures
+        if: ${{ always() }}

@kyaukyuai kyaukyuai merged commit 47f88cd into main Jan 27, 2025
4 checks passed
@kyaukyuai kyaukyuai deleted the chore/dependencies branch January 27, 2025 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant