Hi all,

As per [mypy's instructions][1] (and as in the standard python library), the 
files are formatted differently than usual. [Black follows this convention][2] 
and formats more "tersely". However, when using pycodestyle/flake8 the linter 
shows a lot of unexpected warnings in "pyi" files.

I suggest we make the defaults warnings for the "pyi" file type different from 
"py" such as there will not be a need to use the following flake8 argument:

    flake8 --per-file-ignores='*.pyi:E704,E301,E302,E305,E261' ...

My apologies if this topic was discussed before, but I couldn't find it in this 
mailing list archives or tickets of related projects.

Best regards,
Pavel

[1]: https://github.com/python/mypy/wiki/Creating-Stubs-For-Python-Modules
[2]: https://github.com/psf/black#typing-stub-files
_______________________________________________
code-quality mailing list -- code-quality@python.org
To unsubscribe send an email to code-quality-le...@python.org
https://mail.python.org/mailman3/lists/code-quality.python.org/

Reply via email to