Skip to content

Commit

Permalink
➖ remove broken mdformat-pyproject (#262)
Browse files Browse the repository at this point in the history
* 🐛 move config to dedicated `toml`

* ➖ removed the `mdformat-pyproject` dependency

* 📝 explain why `mdformat` requires 3.13

* 🩺 simple `mdformat` command leveraging config

* 📝 better docs message

* 🚨 lint md 😅

* 📝 better docs

Co-authored-by: Joren Hammudoglu <jhammudoglu@gmail.com>

* ⏪ use the full `MD` list in the `mdofrmat` command

* ⏪ changes in the contribuiting docs

* 🩹 rremnant link in docs

* 🐛 fix flag causing errors on python<3.13

* ✏️ fix typo

---------

Co-authored-by: Joren Hammudoglu <jhammudoglu@gmail.com>
  • Loading branch information
miloth and jorenham authored Dec 9, 2024
1 parent a36c498 commit 073d9ac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 22 deletions.
4 changes: 4 additions & 0 deletions .mdformat.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
end_of_line = "lf"
# exclude = [".tox/**", ".venv/**", "**/*.m[!d]", "**/*.[!m]d"]
# TODO: Uncomment once `--exclude` can be used on `python<3.13`, see
# https://github.com/hukkin/mdformat/issues/489
7 changes: 2 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ lint = [
{include-group = "scipy"},
"mdformat-gfm>=0.3.7,<1",
"mdformat-gfm-alerts>=1.0.1,<2",
"mdformat-pyproject>=0.0.2,<1",
"ruff>=0.8.2",
"sp-repo-review[cli]>=2024.8.19",
]
Expand Down Expand Up @@ -97,6 +96,8 @@ mdformat
tests/README.md
codegen/README.md
"""
# TODO: Replace with `mdformat .` once `--exclude` can be used on `python<3.13`, see
# https://github.com/hukkin/mdformat/issues/489
_ruff_format = "ruff format"
_ruff_check = "ruff check --show-fixes"
repo-review = "repo-review ."
Expand Down Expand Up @@ -150,10 +151,6 @@ args = [
[tool.typos.files]
extend-exclude = ["*.pyi"]

[tool.mdformat]
end_of_line = "lf"
exclude = [".tox/**", ".venv/**", "**/*.m[!d]", "**/*.[!m]d"]

[tool.mypy]
python_version = "3.10"
strict = true
Expand Down
17 changes: 0 additions & 17 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 073d9ac

Please sign in to comment.