Skip to content

Update README with pyproject.toml linting instructions#161

Merged
ntBre merged 2 commits intoastral-sh:mainfrom
mxr:patch-2
Mar 19, 2026
Merged

Update README with pyproject.toml linting instructions#161
ntBre merged 2 commits intoastral-sh:mainfrom
mxr:patch-2

Conversation

@mxr
Copy link
Copy Markdown
Contributor

@mxr mxr commented Mar 18, 2026

Summary

Document linting pyproject.toml

Test Plan

$ pwd
/Users/mxr/src/mxr/ruff-pre-commit

$ git diff -U1 main -- .pre-commit-hooks.yaml
diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml
index 4d17023..edbbf04 100644
--- a/.pre-commit-hooks.yaml
+++ b/.pre-commit-hooks.yaml
@@ -5,3 +5,3 @@
   language: python
-  types_or: [python, pyi, jupyter]
+  types_or: [python, pyi, jupyter, pyproject]
   args: []
@@ -28,3 +28,3 @@
   language: python
-  types_or: [python, pyi, jupyter]
+  types_or: [python, pyi, jupyter, pyproject]
   args: []

$ uv tool install pre-commit --force-reinstall -q && echo 'ok'  # this gets the latest identify-cli for my pre-commit install
ok

$ pre-commit try-repo . ruff-check --files pyproject.toml
===============================================================================
Using config:
===============================================================================
repos:
-   repo: .
    rev: 63f7cce2daaa4ffa6660061b1a47a8573af7143b
    hooks:
    -   id: ruff-check
===============================================================================
[INFO] Initializing environment for ..
[INFO] Installing environment for ..
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
ruff check...............................................................Passed

@mxr mxr marked this pull request as ready for review March 19, 2026 12:42
Copy link
Copy Markdown
Contributor

@ntBre ntBre left a comment

Choose a reason for hiding this comment

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

Looks good to me, thank you! Just needs one small version bump after the release today.

@ntBre ntBre added the documentation Improvements or additions to documentation label Mar 19, 2026
Co-authored-by: Brent Westbrook <36778786+ntBre@users.noreply.github.com>
@ntBre ntBre merged commit 25cbabd into astral-sh:main Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants