aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoby Mathew <soby.mathew@arm.com>2019-09-12 16:14:36 +0000
committerTrustedFirmware Code Review <review@review.trustedfirmware.org>2019-09-12 16:14:36 +0000
commit36305c827b7457fac31d0dcb861e2de2d4ea5a0b (patch)
tree548adc1bd413cb164f8e4aba9c38d7944e5e15a0
parent88b69fccba8beda50c19c655e76ecc527dd162ea (diff)
parent40b06510f29058215b7774806c6cc3921cd55e5b (diff)
downloadtrusted-firmware-a-36305c827b7457fac31d0dcb861e2de2d4ea5a0b.tar.gz
Merge "Add python configuration for editorconfig" into integration
-rw-r--r--.editorconfig13
1 files changed, 13 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
index 928c30705..b14e0253b 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -11,6 +11,8 @@
# [CONT] contributing.rst
# [LCS] Linux Coding Style
# (https://www.kernel.org/doc/html/v4.10/process/coding-style.html)
+# [PEP8] Style Guide for Python Code
+# (https://www.python.org/dev/peps/pep-0008)
root = true
@@ -60,3 +62,14 @@ max_line_length = 180
# 180 only selected to prevent changes to existing text.
tab_width = 4
+
+# Adjustment for python which prefers a different style
+[*.py]
+# [PEP8] Indentation
+# "Use 4 spaces per indentation level."
+indent_size = 4
+indent_style = space
+
+# [PEP8] Maximum Line Length
+# "Limit all lines to a maximum of 79 characters."
+max_line_length = 79