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

Redefine and re-organize global settings #82

Merged
merged 8 commits into from
Mar 8, 2023
Merged

Conversation

AnonymouX47
Copy link
Owner

  • Moves all global settings to the package top-level.
  • Redefines global settings as functions (replacing constant-like variables).

- Change: `.utils.set_query_timeout()` -> `.set_query_timeout()`.
- Change: `.utils.DEFAULT_QUERY_TIMEOUT` -> `.DEFAULT_QUERY_TIMEOUT`.
- Add: `disable_queries()` and `enable_queries()` at top-level.
- Add: `.utils._queries_enabled`.
- Change: Remove `.utils.DISABLE_QUERIES`.
- Add: `disable_win_size_swap()` and `enable_win_size_swap()` at top-level.
- Add: `.utils._swap_win_size`.
- Change: Remove `.utils.SWAP_WIN_SIZE`.
@AnonymouX47 AnonymouX47 added the improvement Implementation of improvement to an existing feature label Mar 8, 2023
@AnonymouX47 AnonymouX47 added this to the 0.6.0 milestone Mar 8, 2023
@AnonymouX47 AnonymouX47 merged commit c7a6f38 into main Mar 8, 2023
@AnonymouX47 AnonymouX47 deleted the global-settings branch March 8, 2023 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Implementation of improvement to an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant