Python Flake8: Static code analysis & visualize from Jenkins, Github | Warnings NG Plugin

Опубликовано: 11 Ноябрь 2024
на канале: Kumar'S
4,978
49

Python Static Code Analysis: Flake8 is a linting tool, like pylint. In this video we'll see:
how to install and set up the flake8 code linter for Python in Linux CentOS step by step.
how to install python virtual environment in Linux CentOS
how to use python virtual environment in Jenkins to execute python code
how to pull down code from Github and execute.
how to run flake8 code analysis for python code.
how to install Jenkins warnings ng plugin for code analysis report in Jenkins

Installing pip in Linux CentOS7: yum install epel-release; yum install python-pip
Install virtual env: pip install virtualenv
Flake8 site: https://pypi.org/project/flake8/
Flake8 documentation: https://flake8.pycqa.org/en/latest/
Error / Violation Codes: https://flake8.pycqa.org/en/latest/us...
All flake8 rules: https://lintlyci.github.io/Flake8Rules/
Jenkins Next Generation Warnings plugin: https://plugins.jenkins.io/warnings-ng/

We'll go over why you should use a code linter like Flake8, Pylint, or other static code analysis tools.
Flake8 is a popular well-known static code analysis tool for Python 2 and 3. It has a many useful features, for e.g. checking code for compliance with the PEP 8 Python style code. It makes sure that our code follows the code style guide and it can automatically identify common bugs and errors in our code. It helps use prevent things like syntax errors, typos, bad formatting, incorrect styling.


Thank you and Happy Learning.
Please subscribe to get more such videos.

--- The full Python Unit Testing videos:
   • Python Unittest  

--- Python Testing Course in Udemy:
https://bit.ly/3fpK05F

--- Git Tutorials:
   • Git Tutorial