Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add infrastructure for checking Poetry configuration files #949

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

Merged
per1234 merged 2 commits into arduino:main from per1234:check-poetry
Sep 14, 2025

Conversation

Copy link
Contributor

@per1234 per1234 commented Sep 14, 2025

The project's Python package dependencies are managed using the Poetry tool.

Tasks and a GitHub Actions workflow are added to maintain and check for problems in the Poetry configuration files.

The tasks provide the following operations:

  • Check for problems with the data structure of the pyproject.toml Python project file
  • Update the poetry.lock file as may be required following manual modifications to pyproject.toml, or update of the Poetry application

A GitHub Actions workflow is included to automatically run the tasks. The workflow is triggered on any push or pull that changes relevant project files, in order to avoid the introduction of problems with the project filesystem. It is also triggered periodically, in order to catch breakage caused by external changes.

The project's Python package dependencies are managed using the "Poetry" tool.
Tasks and a GitHub Actions workflow are added to maintain and check for problems in the Poetry configuration files.
The tasks provide the following operations:
* Check for problems with the data structure of the `pyproject.toml` Python project file
* Update the `poetry.lock` file as may be required following manual modifications to `pyproject.toml`, or update of the
 "Poetry" application
A GitHub Actions workflow is included to automatically run the tasks. The workflow is triggered on any push or pull that
changes relevant project files, in order to avoid the introduction of problems with the project filesystem. It is also
triggered periodically, in order to catch breakage caused by external changes.
...ncies` table
Originally Poetry supported two distinct dependency types, each defined separately in the `pyproject.toml` file:
* main: defined under the `tool.poetry.dependencies` table
* dev: defined under the `tool.poetry.dev-dependencies` table
This concept of dependency types was later made more flexible by allowing the user to define any number of arbitrary
dependency "groups", with "dev" simply being one of those groups. A new table naming scheme was created to support this
flexible dependency groups system.
For the sake of backwards compatibility, Poetry does still support use of the `tool.poetry.dev-dependencies` table.
However, it is deprecated and its use results in a warning.
The project's Poetry configuration is hereby migrated to the modern format.
@per1234 per1234 self-assigned this Sep 14, 2025
@per1234 per1234 added type: enhancement Proposed improvement topic: infrastructure Related to project infrastructure labels Sep 14, 2025
Copy link

codecov bot commented Sep 14, 2025
edited
Loading

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.33%. Comparing base (249deae) to head (786f70b).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@ Coverage Diff @@
## main #949 +/- ##
=======================================
 Coverage 83.33% 83.33% 
=======================================
 Files 1 1 
 Lines 180 180 
=======================================
 Hits 150 150 
 Misses 19 19 
 Partials 11 11 
Flag Coverage Δ
unit 83.33% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@per1234 per1234 merged commit 36c2dcb into arduino:main Sep 14, 2025
62 of 74 checks passed
@per1234 per1234 deleted the check-poetry branch September 14, 2025 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Labels
topic: infrastructure Related to project infrastructure type: enhancement Proposed improvement
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /