I have seen many projects that have maintenance problems due to “import chaotic”. Today I share a style of “import” that I highly recommend.
- Divide the import area to 3 blocks.
- Import all of the packages related to python in the first block.
- Import all of the packages related to the framework in the second block.
- Import packages of your own in the last block.