FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
hexchat/plugins/python/python_style_guide.md at master · iCodeIN/hexchat · GitHub
iCodeIN
/
hexchat
Public
forked from
hexchat/hexchat
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
hexchat
/
plugins
/
python
/
python_style_guide.md
Copy path
More file actions
More file actions
Latest commit
History
History
History
26 lines (18 loc) · 451 Bytes
Breadcrumbs
hexchat
/
plugins
/
python
/
python_style_guide.md
Copy path
File metadata and controls
26 lines (18 loc) · 451 Bytes
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions
HexChat Python Module Style Guide
(This is a work in progress).
General rules
PEP8 as general fallback recommendations
Max line length: 120
Avoid overcomplex compound statements. i.e. dont do this: somevar = x if x == y else z if a == b and c == b else x
Indentation style
Multi-line functions
foo
(
really_long_arg_1
,
really_long_arg_2
)
Mutli-line lists/dicts
foo
=
{
'bar'
:
'baz'
, }
Back
|
FazBrowse Home
|
New Git URL