samuelololol / dotfiles

my dot-files
8 stars 3 forks source link

Flake8 problems when new python file been created #2

Closed mkfsn closed 7 years ago

mkfsn commented 7 years ago

"__date__" and "__author__" have missing spaces, and there is no indent before calling main().

samuelololol commented 7 years ago

Cool! thank you buddy

samuelololol commented 7 years ago

@mkfsn I tried this pr, I am just wondering what's your indent setting?

https://github.com/samuelololol/dotfiles/blob/master/.vim/bundle/samuelololol/ftplugin/python.vim#L11

This added \t creates additional indent in my vim like following

#!/usr/bin/env python
# -*- coding: utf-8 -*-
__date__ = 'Dec 10, 2016 '
__author__ = 'samuel'

def main():
    pass

if __name__ == '__main__':
        main()

do you really need this tab?