Prashant Chaubey - Writing Good Python

Veröffentlicht am: 04 Oktober 2020
auf dem Kanal: EuroPython Conference
1,006
13

"Writing Good Python
EuroPython 2020 - Talk - 2020-07-24 - Brian
Online

By Prashant Chaubey

Like other programming languages, it is easy to write cryptic, unmaintainable, and rigid Python code. Moreover, in teams, this problem escalates due to varied coding styles of developers. How to ensure code quality and consistency? My goal with this talk is to educate my audience about some tools and libraries that can help us in making our code more consistent.
I was a Software Engineer who wrote Automation systems in Python for some of the fortune 500s. I intend to cover the following major ideas:
• What is a high-quality code? How consistency is an important aspect of maintainability?
• Ways to achieve consistency in Python
o What is PEP8?
o “pylint” - a source code, bug, and quality checker for python and follows the style recommended by PEP 8
o What is PEP257?
o “pydocstyle” checks compliance with Python docstring conventions.
o What is PEP484?
o “mypy” provides optional static type checking.
o “bandit” which can find common security issues in Python code.
o “black” which is a Python source code formatter.
• Ways to integrate mentioned tools in development life cycle
o While writing (IDE extensions)
o During commit (pre-commit hooks)
o After push (Build pipelines)
• “pre-commit” is a framework for managing and maintaining multi-language pre-commit hooks
• Example of an Azure DevOps pipeline integrating all mentioned tools.
pylint, pydocstyle, mypy, bandit, black and pre-commit are available on PyPI. My audience should know how to install Python libraries from PyPi using pip.



License: This video is licensed under the CC BY-NC-SA 3.0 license: https://creativecommons.org/licenses/...
Please see our speaker release agreement for details: https://ep2020.europython.eu/events/s...

"


Auf dieser Seite können Sie das Online-Video Prashant Chaubey - Writing Good Python mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer EuroPython Conference 04 Oktober 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,006 Mal angesehen und es wurde von 13 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!