Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added 'attributes.py', 'colors.py', and 'highlights.py' for better constants management #74

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Josecolin99
Copy link

This PR introduces three new constant files: attributes.py, colors.py, and highlights.py, aimed at standardizing the usage of text attributes, text colors, and background highlights across the project. Previously, such values were hardcoded throughout the codebase, leading to inconsistencies and a challenging environment for future modifications.

Josecolin99 and others added 2 commits April 2, 2024 18:43
…nstants management

Added constant files for standardizing the use of attributes, colors, and highlights

To enhance code readability and maintainability, three constant files have been created: 'attributes.py', 'colors.py', and 'highlights.py'. These files contain constants for text attributes (such as 'bold', 'underline'), text colors, and background colors, respectively. This structure allows for easy referencing and uniform use of these values across the project, facilitating future modifications and the organized inclusion of new values.
@hugovk
Copy link
Member

hugovk commented Apr 3, 2024

Thanks for the suggestion, but I'm not too clear on the benefit here, and it's introducing (unused) duplication. I think the current situation is fine, the __init__ file isn't particularly big at the moment.

Previously, such values were hardcoded throughout the codebase, leading to inconsistencies and a challenging environment for future modifications.

Please could you expand on this? What sort of inconsistencies and challenges?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants