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
It doesn't really depend on #1342 really as there are ways of doing this already for inline code blocks. pytest-examples is one package that runs Ruff and Black against Markdown code blocks.
Ruff is maybe adding native support for formatting Markdown code blocks too.
Whether we'd actually want to do this is another question. Particularly formatting with Black which can lead to extra parentheses as it splits long lines.
One option might be to define our own Ruff and Black configuration — maybe only Ruff as that now formats too — for formatting dataset definitions, which might not exactly be the same as we use for the ehrQL source.
Depends on #1342, as it's simpler to do this for standalone files than code inside Markdown.
The text was updated successfully, but these errors were encountered: