mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-23 04:02:46 +00:00

* If a dev adds an editorconfig plugin to their editor, automatically configure their editor for code style. * Specify 4-space softtabs so new code will be compatible with Python 3. * Put the same settings in .gitattributes so git diff highlights whitespace errors.
14 lines
746 B
Text
14 lines
746 B
Text
######################################################################
|
|
# gitattributes(5) describes the format and usage of this file.
|
|
#
|
|
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
|
|
# http://git-scm.com/book/ch7-2.html
|
|
# http://urbanautomaton.com/blog/2011/07/28/git-grep-and-language-specific-diffs/
|
|
# https://help.github.com/articles/dealing-with-line-endings
|
|
######################################################################
|
|
#
|
|
# If you change a setting here,
|
|
# you should also change .editorconfig
|
|
#
|
|
*.py diff=python text eol=lf whitespace="trailing-space,space-before-tab,tab-in-indent,blank-at-eof,tabwidth=4"
|
|
*.yml text eol=lf whitespace="trailing-space,space-before-tab,tab-in-indent,blank-at-eof,tabwidth=2"
|