Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 832 Bytes

checklist.md

File metadata and controls

46 lines (29 loc) · 832 Bytes

Check Your Code Against the Following Points

Code Style

  1. Ensure each file ends with a single blank line.

  2. Add a blank line between different groups of imports and ensure appropriate ordering of imports.

Imports should be grouped in the following order:

1.Standard library imports.
2.Related third party imports.
3.Local application/library specific imports.

Good example

from django.urls import path

from taxi.views import index

Bad example:

from django.urls import path
from taxi.views import index
  1. Use absolute imports instead of relative imports

Good example:

from taxi.views import index

Bad example:

from .views import index

Clean Code

  1. Don't forget to delete comments when you are ready to commit and push your code.