green-code-initiative / ecoCode-challenge

Emboard in the hackhatons serie for improving ecoCode
3 stars 4 forks source link

[Hackaton 2024][Lithium][Python] Prefer using builtins functions #126

Open Lukyio opened 4 months ago

Lukyio commented 4 months ago

Prefer using builtins functions

Results can be viewed in the samples/images folder in the repo: https://github.com/green-code-initiative/ecocode-rule-validator

Associated rule link

https://github.com/green-code-initiative/ecoCode-challenge/issues/47

Language and platform

Python

Measure justification

Measure justification

Check samples folder where you have csv files that explains the work done:

https://github.com/green-code-initiative/ecocode-rule-validator

You can also check the README.md file for more information.

Validation Prefer using builtins functions

Results can be viewed in the samples/images folder in the repo: https://github.com/green-code-initiative/ecocode-rule-validator

Associated rule link

https://github.com/green-code-initiative/ecoCode-challenge/issues/47

Language and platform

Python

Measure justification

TODO

Very important: give us elements that justify that your measure of this rule justifies (or doesn't) the environmental impact. Without a good justification, your measure will not be accepted by Green Code Initiative.

Here are some elements that can help to justify your measure:

Validation

Builtin Status certainty %
filter validated 100 %
map validated 100 %
len validated 100 %
sum validated 100 %
abs invalidated 50 %
enumerate invalidated 50 %