-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
44 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Check Your Code Against the Following Points | ||
|
||
1. If the function definition line is too long, place each parameter on a new line. | ||
``` | ||
def long_function_name( | ||
var_one, | ||
var_two, | ||
var_three, | ||
var_four | ||
) -> None: | ||
``` | ||
|
||
2. Use absolute imports only. | ||
|
||
Good example: | ||
```python | ||
from app.module import Component | ||
``` | ||
|
||
Bad example: | ||
```python | ||
from .module import Component | ||
``` |