You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: use ruff to format docs code instead of blacken-docs (#833)
* feat: use ruff to format docs code instead of blacken-docs
Ruff 0.16 formats Python code blocks in Markdown, so a single tool covers
both code and docs. Drop the blacken-docs hook, bump ruff-pre-commit to
v0.16.0, and add markdown to the ruff-format hook's types_or.
PC111 now passes with either blacken-docs or a ruff-format hook that lists
markdown in types_or.
Assisted-by: ClaudeCode:claude-opus-4.8
* docs: use tabs for the two doc-formatter options
Assisted-by: ClaudeCode:claude-opus-4.8
* refactor: accept ruff-format defaults in PC111
Ruff's pre-commit hook will format Markdown by default at some point.
Pass PC111 unless the ruff-format hook filters Markdown out, instead of
requiring a literal `markdown` entry.
Assisted-by: ClaudeCode:claude-opus-5
* refactor: use pattern matching in PC111
Assisted-by: ClaudeCode:claude-opus-5
* chore: add pyproject to list too
Signed-off-by: Henry Schreiner <henryfs@princeton.edu>
---------
Signed-off-by: Henry Schreiner <henryfs@princeton.edu>
0 commit comments