Skip to content

Commit b017817

Browse files
committed
Remove extend-include for Markdown files
Refs: astral-sh/ruff#3792 astral-sh/ruff#23434 astral-sh/ruff#23574
1 parent 908d023 commit b017817

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/autofix.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
# Initialize [tool.ruff] in pyproject.toml if it doesn't exist.
8484
# Projects with existing ruff config will keep their settings.
8585
run: |
86-
uv tool install 'ruff==0.15.1'
86+
uv tool install 'ruff==0.15.5'
8787
uvx --no-progress --from . repomatic init ruff
8888
# XXX Ruff is planning to support linting and formatting in one unified command at one point.
8989
# See: https://github.com/astral-sh/ruff/issues/8232
@@ -167,7 +167,7 @@ jobs:
167167
--with 'mdformat_simple_breaks==0.1.0'
168168
--with 'mdformat-toc==0.5.0'
169169
--with 'mdformat-web==0.2.0'
170-
--with 'ruff==0.15.1'
170+
--with 'ruff==0.15.5'
171171
'mdformat==1.0.0'
172172
- name: Install shfmt
173173
run: sudo apt install --yes shfmt

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
> [!WARNING]
66
> This version is **not released yet** and is under active development.
77
8+
- Remove `extend-include` for Markdown files now that ruff 0.15.5 discovers `*.md` by default in preview mode.
9+
810
## [`6.2.1` (2026-03-06)](https://github.com/kdeldycke/repomatic/compare/v6.2.0...v6.2.1)
911

1012
- Fix `actions/checkout` wiping downloaded Python package artifacts (`.whl`, `.tar.gz`) before `gh release create` could attach them. Move checkout before artifact download so the release draft includes the Python distribution files.

pyproject.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,6 @@ exclude-newer-package = { "click-extra" = "0 day", "repomatic" = "0 day" }
153153
build-backend.module-root = ""
154154

155155
[tool.ruff]
156-
# Enable formatting of Python code blocks in Markdown files.
157-
# https://docs.astral.sh/ruff/formatter/#markdown-code-formatting
158-
# https://github.com/astral-sh/ruff/pull/23434
159-
extend-include = [ "*.{markdown,mdown,mkdn,mdwn,mkd,md,mdtxt,mdtext,mdx}" ]
160156
preview = true
161157
fix = true
162158
unsafe-fixes = true

0 commit comments

Comments
 (0)