ruff
c2ec5f0b - Use source type to determine parser mode for formatting (#8205)

Commit
2 years ago
Use source type to determine parser mode for formatting (#8205) ## Summary This PR fixes the bug where if a Notebook contained IPython syntax, then the format command would fail. This was because the correct mode was not being used while parsing through the formatter code path. ## Test Plan This PR isn't the only requirement for Notebook formatting to start working with IPython escape commands. The following PR in the stack is required as well.
Author
Parents
Loading