File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,26 @@ all Python/Cython code that is included with Sage should adhere to the
27
27
style conventions discussed in this chapter.
28
28
29
29
30
+ .. _section-coding-general :
31
+
32
+ General Code Style
33
+ ==================
34
+
35
+ Use spaces instead of tabs for indentation. The only exception is for
36
+ makefiles, in which tabs have a syntactic meaning different from
37
+ spaces.
38
+
39
+ Do not add trailing whitespace.
40
+
41
+ Sage provides editor configuration for Emacs, using the file
42
+ ``.dir-locals.el ``, to use spaces instead of tabs. Regarding trailing
43
+ whitespace, see https://www.emacswiki.org/emacs/DeletingWhitespace
44
+ for various solutions.
45
+
46
+ If you use another editor, we recommend to configure it so you do not
47
+ add tabs to files.
48
+
49
+
30
50
.. _section-coding-python :
31
51
32
52
Python Code Style
You can’t perform that action at this time.
0 commit comments