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

Draft
wants to merge 35 commits into
base: dev
Choose a base branch
from

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
Start renaming constants to use capital letters consistently.

branches_main -> BRANCHES_MAIN
github_status_builders -> GITHUB_STATUS_BUILDERS
1. Eliminate star imports. Import what you use.
2. Eliminate redundant f-strings without placeholders.
3. Fix wrong escape \ character in Windows-like paths.
4. Eliminate (some) long lines over 80 characters.
1. Introduce a new yml file that stores worker locks counts.
2. Remove redundant and inconsistent naming between lock name and worker
   name.
1. Introduce typehints
2. Include what you use.
No need to reconstruct the same list over and over, just return a static
variable.
Simplify and ensure it returns a 3-value tuple.
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.

1 participant