putting JUNK at the end of a [.py] file

Mats Wichmann mats at wichmann.us
Fri Feb 24 10:33:38 EST 2023


On 2/24/23 08:27, Mats Wichmann wrote:

> 
> Indeed, I work on a project that by convention puts editor instructions 
> at the end of each file (which some might consider junk :-) ), like this:
> 
> 
> # Local Variables:
> # tab-width:4
> # indent-tabs-mode:nil
> # End:
> # vim: set expandtab tabstop=4 shiftwidth=4:

I should probably have added that I know the above is unnecessary, as 
there is now a standard for defining this stuff once, called 
EditorConfig, which many editors understand natively, and many more via 
plugins.

https://editorconfig.org/




More information about the Python-list mailing list