[ 
https://issues.apache.org/jira/browse/AMBARI-26147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jialiang Cai reassigned AMBARI-26147:
-------------------------------------

    Assignee: Jialiang Cai

> Ruff integration roadmap
> ------------------------
>
>                 Key: AMBARI-26147
>                 URL: https://issues.apache.org/jira/browse/AMBARI-26147
>             Project: Ambari
>          Issue Type: Improvement
>          Components: ambari-trunk
>    Affects Versions: 3.0.0
>            Reporter: zrain
>            Assignee: Jialiang Cai
>            Priority: Critical
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The entire Ambari project has accumulated a large amount of Python code, 
> which is the result of the collective efforts of multiple contributors to 
> make Ambari better. 
> ===============================================================================
>  Language            Files        Lines         Code     Comments       Blanks
> ===============================================================================
>  Java                 3330       690679       427116       156389       107174
>  JavaScript           2125       512742       374238        87081        51423
>  Plain Text             68       500082            0       497409         2673
>  JSON                  758       479988       479689            0          299
>  Python               1096       218057       175499         9547        
> 33011   <=== here
>  XML                  1135       156581       130300        20189         6092
> During this process, a problem has emerged: everyone has different coding 
> styles, which leads to inconsistencies in the submitted code. This can result 
> in various inconveniences, such as increased understanding costs of the 
> underlying principles and greater difficulty in identifying the root causes 
> of issues. As the codebase grows, these problems become increasingly 
> apparent. Therefore, we are introducing 
> [ruff|https://github.com/astral-sh/ruff], along with some additional 
> processes, to format the code and alleviate these issues.
> *What is Ruff?*
> An extremely fast Python linter and code formatter, written in Rust. Its 
> speed is one of its advantages. More information can be found here: 
> [ruff|https://github.com/astral-sh/ruff].
> Roadmap
>  * Introduce Ruff into Ambari and preset rules, then manually execute the 
> formatting command.
>  * ntegrate Ruff checker into Jenkins, checker that fails will block the 
> merge process.
>  * Integrate [pre-commit|https://pre-commit.com/] hooks.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to