Skip to content

Conversation

@krassowski
Copy link
Contributor

📝 Summary

🔍 Description of Changes

Adds pylsp_signatures_to_markdown hook, re-using existing ruff formatting utility.

Before After
image Screenshot from 2025-05-09 22-01-22

Note: this does not help with pd.read_csv; I am not sure why it is not hitting this code path, but notably it happens on the completion items which do not have a docstring either.

📋 Checklist

  • I have read the contributor guidelines.
  • For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on Discord, or the community discussions (Please provide a link if applicable).
  • I have added tests for the changes made.
  • I have run the code and verified that it works as expected.

📜 Reviewers

@mscolnick

@vercel
Copy link

vercel bot commented May 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marimo-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 12, 2025 9:08am

@krassowski krassowski force-pushed the format-signatures branch from 1ab7ed2 to cdf2df7 Compare May 12, 2025 09:07
@mscolnick mscolnick marked this pull request as ready for review May 12, 2025 13:57
@mscolnick mscolnick merged commit 2eb2d6f into marimo-team:main May 12, 2025
24 of 33 checks passed
@github-actions
Copy link

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.13.7-dev34

@krassowski krassowski deleted the format-signatures branch June 6, 2025 16:26
mscolnick pushed a commit that referenced this pull request Jul 10, 2025
## 📝 Summary

This is a follow-up to #4864 since the signature-formatting capability
was incorporated directly into `python-lsp-server`

## 🔍 Description of Changes

Removed custom plugin and typechecking dependency on
`python-lsp-server`, added configuration to prefer `ruff` if enabled
over `black` (default in `python-lsp-server`).

This should remain in draft pending a new release of
`python-lsp-server`.

## 📋 Checklist

- [x] I have read the [contributor
guidelines](https://github.com/marimo-team/marimo/blob/main/CONTRIBUTING.md).
- [ ] For large changes, or changes that affect the public API: this
change was discussed or approved through an issue, on
[Discord](https://marimo.io/discord?ref=pr), or the community
[discussions](https://github.com/marimo-team/marimo/discussions) (Please
provide a link if applicable).
- [ ] I have added tests for the changes made.
- [ ] I have run the code and verified that it works as expected.

## 📜 Reviewers

mscolnick

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Light2Dark pushed a commit that referenced this pull request Jul 14, 2025
## 📝 Summary

This is a follow-up to #4864 since the signature-formatting capability
was incorporated directly into `python-lsp-server`

## 🔍 Description of Changes

Removed custom plugin and typechecking dependency on
`python-lsp-server`, added configuration to prefer `ruff` if enabled
over `black` (default in `python-lsp-server`).

This should remain in draft pending a new release of
`python-lsp-server`.

## 📋 Checklist

- [x] I have read the [contributor
guidelines](https://github.com/marimo-team/marimo/blob/main/CONTRIBUTING.md).
- [ ] For large changes, or changes that affect the public API: this
change was discussed or approved through an issue, on
[Discord](https://marimo.io/discord?ref=pr), or the community
[discussions](https://github.com/marimo-team/marimo/discussions) (Please
provide a link if applicable).
- [ ] I have added tests for the changes made.
- [ ] I have run the code and verified that it works as expected.

## 📜 Reviewers

mscolnick

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
sebbeutler pushed a commit to sebbeutler/marimo that referenced this pull request Jul 16, 2025
## 📝 Summary

This is a follow-up to marimo-team#4864 since the signature-formatting capability
was incorporated directly into `python-lsp-server`

## 🔍 Description of Changes

Removed custom plugin and typechecking dependency on
`python-lsp-server`, added configuration to prefer `ruff` if enabled
over `black` (default in `python-lsp-server`).

This should remain in draft pending a new release of
`python-lsp-server`.

## 📋 Checklist

- [x] I have read the [contributor
guidelines](https://github.com/marimo-team/marimo/blob/main/CONTRIBUTING.md).
- [ ] For large changes, or changes that affect the public API: this
change was discussed or approved through an issue, on
[Discord](https://marimo.io/discord?ref=pr), or the community
[discussions](https://github.com/marimo-team/marimo/discussions) (Please
provide a link if applicable).
- [ ] I have added tests for the changes made.
- [ ] I have run the code and verified that it works as expected.

## 📜 Reviewers

mscolnick

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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.

2 participants