Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

SageMath code auto-formatting

Hello there!

Are there any known code formatters for SageMath code, such as yapf and black are for Python code? If not, is it possible to make a fork of, say, yapf which recognises the special SageMath syntax? It makes sense that this would be possible since SageMath code is essentially an extension of Python; however I have no idea how one would go about actually doing so.