swagger_codegen icon indicating copy to clipboard operation
swagger_codegen copied to clipboard

Warning at `blackify` step

Open coderfromhere opened this issue 5 years ago • 1 comments

Hi, I'm getting these warnings with an installable renderer:

[13:18:31] WARNING  Black failed to post-process file with an error: Cannot parse: 3:4: The client is provided with async and sync adapters.. Currently  blackify.py:20
                    it happens on non python files, you can safely ignore this message.                                                                                
           WARNING  Black failed to post-process file with an error: Cannot parse: 2:8: include README.rst CHANGES LICENSE. Currently it happens on non  blackify.py:20
                    python files, you can safely ignore this message.         

I think it's relatively easy to recursively filter non *.py files in the folder before feeding the stream to black, but I haven't looked at the post-processor API yet. Not critical though, just FYI to keep track of the things that could be improved.

coderfromhere avatar Sep 24 '20 12:09 coderfromhere

Hello, thank you for opening the ticket :) I know about this issue, but can not get my hands on it yet.

asyncee avatar Sep 24 '20 14:09 asyncee