vigo / textmate2-python-fmt

Python FMT is a python linter/formatter/checker for TextMate.
MIT License
13 stars 5 forks source link

handle pyi files correctly in black #8

Closed tungol closed 6 months ago

tungol commented 2 years ago

Normally black alters its functionality based on the file extension. Typing stub files (*.pyi) are formatted using different rules from regular python files.

We're piping in the file from stdin, so black can't detect pyi files itself. This makes sure that black is able to format pyi files according to the proper rules.

vigo commented 6 months ago

Yeah! I'm soooo happy to see that I'm not the only one on this planet who still loves and uses TextMate. Thank you @tungol

tungol commented 6 months ago

There's dozens of us!