Skip to content

Add markdown to types_or#159

Open
34j wants to merge 1 commit intoastral-sh:mainfrom
34j:patch-1
Open

Add markdown to types_or#159
34j wants to merge 1 commit intoastral-sh:mainfrom
34j:patch-1

Conversation

@34j
Copy link
Copy Markdown

@34j 34j commented Mar 11, 2026

Summary

Now *.md files are in tool.ruff.include by default and may be used with tool.ruff.format.preview = True, etc.

https://docs.astral.sh/ruff/settings/#include

astral-sh/ruff@4795eca#diff-959aaaf28345388cb476e91b1a8b127625bffba0ca2f8ed794f687bd27e50302

Test Plan

  - repo: https://github.com/astral-sh/ruff-pre-commit
    rev: v0.15.5
    hooks:
      - id: ruff-format
        types_or: [python, pyi, jupyter, markdown]

@MichaReiser
Copy link
Copy Markdown
Member

Thank you. I think we should wait until the feature is out of preview before changing our defaults.

@mxr
Copy link
Copy Markdown
Contributor

mxr commented Mar 16, 2026

Could you update the types_or in the README.md too?

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.

4 participants