Skip to content

Commit

Permalink
Merge #589 auto-format python
Browse files Browse the repository at this point in the history
  • Loading branch information
Lohrer committed Dec 28, 2023
2 parents 1f9324b + f97a012 commit 71142b4
Show file tree
Hide file tree
Showing 22 changed files with 1,149 additions and 840 deletions.
5 changes: 3 additions & 2 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ good-names=i,
# Number of spaces of indent required inside a hanging or continued line.
indent-after-paren=2

# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
# tab).
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 tab).
indent-string=' '

max-line-length=120

[EXCEPTIONS]

# Exceptions that will emit a warning when being caught. Defaults to
Expand Down
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@
},
"[python]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "ms-python.autopep8"
"editor.defaultFormatter": "ms-python.autopep8",
"editor.rulers": [120]
},
"autopep8.args": [
"--indent-size=2",
"--ignore=E121", // E121=hanging indent, no way to set to 2.
"--max-line-length=120"
],
"pylint.args": ["--generated-members", "signal.Signals,GPIO.*"],
Expand Down
Loading

0 comments on commit 71142b4

Please sign in to comment.