Skip to content

Add pyproject-fmt to pre-commit#1370

Merged
fizyk merged 1 commit into
mainfrom
pyproject-fmt
Jul 19, 2026
Merged

Add pyproject-fmt to pre-commit#1370
fizyk merged 1 commit into
mainfrom
pyproject-fmt

Conversation

@fizyk

@fizyk fizyk commented Jul 19, 2026

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Chores
    • Added automatic pyproject.toml formatting to the pre-commit checks using pyproject-fmt (pinned version).
    • Standardised and reformatted project metadata, build settings, and development tooling configuration in pyproject.toml.
    • Updated the changelog/news fragment to reflect the new formatting check and related configuration normalisation.

@coderabbitai

coderabbitai Bot commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 43485d37-e63e-40da-a29d-1a7e9e8a9dae

📥 Commits

Reviewing files that changed from the base of the PR and between 9090ff4 and 62b7626.

📒 Files selected for processing (3)
  • .pre-commit-config.yaml
  • newsfragments/+0d5d4cb5.misc.rst
  • pyproject.toml
🚧 Files skipped from review as they are similar to previous changes (2)
  • .pre-commit-config.yaml
  • pyproject.toml

📝 Walkthrough

Walkthrough

The change adds pyproject-fmt to pre-commit, configures its project settings, reformats pyproject.toml, and records the tooling change in a news fragment.

Changes

pyproject-fmt integration

Layer / File(s) Summary
Project metadata and tooling configuration
pyproject.toml
Updates build and project metadata, reformats tooling and release configuration, adds [tool.pyproject-fmt], and retains the rstcheck warning level.
Pre-commit formatter registration
.pre-commit-config.yaml, newsfragments/+0d5d4cb5.misc.rst
Adds the pinned pyproject-fmt pre-commit hook and records it in the news fragment.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 6
✅ Passed checks (6 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarises the main change: adding pyproject-fmt to the pre-commit setup.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Newsfragment Check ✅ Passed A newsfragment is present at newsfragments/+0d5d4cb5.misc.rst, and pyproject.toml defines misc as a valid towncrier type.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch pyproject-fmt

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Jul 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@pyproject.toml`:
- Line 98: Rename the pytest configuration table from [tool.pytest] to
[tool.pytest.ini_options] in pyproject.toml so the existing settings are
recognized across the supported pytest 8.x and 9.x versions.
- Around line 78-96: Update the boolean options in the [tool.mypy] configuration
to use TOML boolean literals true or false instead of quoted "True"/"False"
strings. Apply this to the visible mypy settings such as ignore_missing_imports,
disallow_subclassing_any, and related flags, preserving each option’s current
enabled or disabled value.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 0ae54462-2792-4252-9ef3-b42ee7b5a326

📥 Commits

Reviewing files that changed from the base of the PR and between 6bb7d8a and 9090ff4.

📒 Files selected for processing (3)
  • .pre-commit-config.yaml
  • newsfragments/+0d5d4cb5.misc.rst
  • pyproject.toml

Comment thread pyproject.toml Outdated
Comment thread pyproject.toml
@fizyk
fizyk merged commit a7950ce into main Jul 19, 2026
57 checks passed
@fizyk
fizyk deleted the pyproject-fmt branch July 19, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant