Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
yafits
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
artemix
yafits
Wiki
Python coding guidelines
Changes
Page history
New page
Templates
Clone repository
Update Python coding guidelines
authored
3 years ago
by
Moreau Nicolas
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Python-coding-guidelines.md
+8
-8
8 additions, 8 deletions
Python-coding-guidelines.md
with
8 additions
and
8 deletions
Python-coding-guidelines.md
View page @
ed54426d
...
...
@@ -11,21 +11,21 @@ Continuation lines should align wrapped elements either vertically using Python'
Correct:
`# Aligned with opening delimiter.
`
``
`
# Aligned with opening delimiter.
`
foo = long_function_name(var_one, var_two,
`
foo = long_function_name(var_one, var_two,
`
var_three, var_four)`
var_three, var_four)`
``
`
# Add 4 spaces (an extra level of indentation) to distinguish arguments from the rest.`
# Add 4 spaces (an extra level of indentation) to distinguish arguments from the rest.`
`def long_function_name(
`
``
`
def long_function_name(
`
var_one, var_two, var_three,
`
var_one, var_two, var_three,
`
var_four):
`
var_four):
`
print(var_one)`
print(var_one)`
``
`# Hanging indents should add a level.`
...
...
This diff is collapsed.
Click to expand it.