42School / norminette

Official 42 norminette
MIT License
926 stars 138 forks source link

fix: update norm_error.py with pylint norm #507

Closed zakarm closed 1 month ago

zakarm commented 1 month ago

Fix Color Mapping and Formatting in NormWarning Class to Adhere to Pylint Standards

Description:

Corrected the color mapping dictionary by adding missing spaces after colons to comply with pylint standards. Fixed formatting issues to ensure consistency and readability in the NormWarning class. Removed unnecessary whitespace to maintain code cleanliness. Made minor adjustments to the NormWarning class constructor for better clarity and to meet pylint guidelines.

Changes:

Updated color dictionary formatting:

Added space after each colon for color mapping. Ensured proper alignment of dictionary entries to match pylint recommendations. Removed extra newline before class NormWarning. Adjusted indentation and spacing for better readability and compliance with pylint.

Reason for Changes:

To improve code readability and maintain consistency in formatting according to pylint standards. To ensure that color mapping is correctly interpreted and applied. To clean up the code and remove unnecessary whitespaces. To adhere to pylint guidelines for better code quality and maintainability.