diff options
author | QMK Bot <hello@qmk.fm> | 2022-10-05 16:55:12 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2022-10-05 16:55:12 +0000 |
commit | 86ce1d4b04031174b3eca666fbee5f7c9c706ab2 (patch) | |
tree | 1893ffaa3f6096e3a07d8cf971c14880db7e82bf /docs/coding_conventions_python.md | |
parent | d1b6b062024dddf047f760efbad21edb2acca394 (diff) | |
parent | 959f4cbb621868a4f0c1701f54ad2a1f45d889af (diff) |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'docs/coding_conventions_python.md')
-rw-r--r-- | docs/coding_conventions_python.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/coding_conventions_python.md b/docs/coding_conventions_python.md index 960b9cb49e..2b68703448 100644 --- a/docs/coding_conventions_python.md +++ b/docs/coding_conventions_python.md @@ -2,7 +2,7 @@ Most of our style follows PEP8 with some local modifications to make things less nit-picky. -* We target Python 3.7 for compatability with all supported platforms. +* We target Python 3.7 for compatibility with all supported platforms. * We indent using four (4) spaces (soft tabs) * We encourage liberal use of comments * Think of them as a story describing the feature @@ -21,7 +21,7 @@ You can use [yapf](https://github.com/google/yapf) to style your code. We provid We don't have a hard and fast rule for when to use `import ...` vs `from ... import ...`. Understandability and maintainability is our ultimate goal. -Generally we prefer to import specific function and class names from a module to keep code shorter and easier to understand. Sometimes this results in a name that is ambiguous, and in such cases we prefer to import the module instead. You should avoid using the "as" keyword when importing, unless you are importing a compatability module. +Generally we prefer to import specific function and class names from a module to keep code shorter and easier to understand. Sometimes this results in a name that is ambiguous, and in such cases we prefer to import the module instead. You should avoid using the "as" keyword when importing, unless you are importing a compatibility module. Imports should be one line per module. We group import statements together using the standard python rules- system, 3rd party, local. |