Skip to content

Conversation

@jscheffl
Copy link
Contributor

@jscheffl jscheffl commented Nov 1, 2025

As I was attempting to clean code toward ruff rule PLW0603 (https://docs.astral.sh/ruff/rules/global-statement/) I noticed that some code is a bit... outdated to be refactored. Making some smaller PRs for the cleanup of PLW0603 assuming easier to review

This PR attempts to remove the global keyword from settings objects module. It was mainly used as a cache, so replaced it with functools.cache

As there are a couple of global statements and the settings class is a historical hairball, this is a small part 1 PR which removes the two variables only:

  • POLICY_PLUGIN_MANAGER
  • LOGGING_CLASS_PATH

@jscheffl jscheffl force-pushed the bugfix/remove-global-from-settings-part1 branch 2 times, most recently from b17e8cc to 15e57f9 Compare November 4, 2025 22:44
@jscheffl jscheffl force-pushed the bugfix/remove-global-from-settings-part1 branch from 15e57f9 to 1d938af Compare November 6, 2025 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant