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

Rename constants to use capital letters consistently #643

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

cvicentiu
Copy link
Member

This PR begins to refactor constants.py to declare constants as capital letters.

@cvicentiu cvicentiu marked this pull request as draft November 26, 2024 20:26
@cvicentiu
Copy link
Member Author

This PR is done, but will be merged after the previous refactoring ones are merged.

@cvicentiu cvicentiu force-pushed the rename_constants branch 10 times, most recently from cc261ab to 56ddb71 Compare December 4, 2024 13:52
@cvicentiu cvicentiu force-pushed the rename_constants branch 3 times, most recently from 6088cd7 to c4c2926 Compare January 7, 2025 14:12
@cvicentiu cvicentiu marked this pull request as ready for review January 7, 2025 14:12
@cvicentiu cvicentiu force-pushed the rename_constants branch 2 times, most recently from 360698b to 9ec1ba2 Compare January 7, 2025 14:37
@cvicentiu
Copy link
Member Author

Ready for review.

@cvicentiu cvicentiu force-pushed the rename_constants branch 3 times, most recently from 5cb900b to 138ef20 Compare January 7, 2025 19:56
all_platforms -> ALL_PLATFORMS
branches_main -> BRANCHES_MAIN
builders_autobake -> BUILDERS_AUTOBAKE
builders_big -> BUILDERS_BIG
builders_dockerlibrary -> BUILDERS_DOCKERLIBRARY
builders_eco -> BUILDERS_ECO
builders_galera -> BUILDERS_GALERA
builders_install -> BUILDERS_INSTALL
builders_s3 -> BUILDERS_S3
builders_upgrade -> BUILDERS_UPGRADE
builders_wordpress -> BUILDERS_WORDPRESS
github_status_builders -> GITHUB_STATUS_BUILDERS
release_branches -> RELEASE_BRANCHES
savedPackageBranches -> SAVED_PACKAGE_BRANCHES
savedPackageBranches (master-galera) -> SAVED_PACKAGE_BRANCHES_GALERA
supportedPlatforms -> SUPPORTED_PLATFORMS

os_info -> OS_INFO
(yes, it is read from a yaml file, but acts as a constant)
@cvicentiu
Copy link
Member Author

Rebased on top of latest dev. Some black linter enforced cleanups as well.

Copy link
Collaborator

@RazvanLiviuVarzaru RazvanLiviuVarzaru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@RazvanLiviuVarzaru RazvanLiviuVarzaru merged commit 3d3722a into dev Jan 8, 2025
8 checks passed
@grooverdan grooverdan deleted the rename_constants branch January 9, 2025 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants