Repository navigation
[Feature] Retarget remaining 32 packages to Python 3.11 for ruff and ty - #7826
isihussain wants to merge 9 commits into
Conversation
|
Thanks for the PR, @isihussain. We missed one in the Additionally, we'll find that running |
|
Good catch, @dlee-bq! Updated Regarding the new violations revealed across packages under |
|
Thanks for catching that, @dlee-bq! Updated Regarding the new violations under |
We should do the full task here in this PR, no sense in putting it off. |
|
Understood! Working on running |
- Fix UP017 violations replacing timezone.utc with datetime.UTC across providers and extensions - Fix UP041 violations replacing asyncio.TimeoutError with builtin TimeoutError - Resolve SIM102 nested if statements in openbb_sec financials and non-xbrl parser - Verify all 36 packages pass ruff check --target-version py311 with 0 errors
|
Ran Pushed the fixes in commit 8f272ec:
|
|
Thanks, @isihussain. Let's take a look at the TY rule name changes: |
…und` across configs
|
Renamed |
Pull Request the OpenBB Platform
Description
target-version = "py311"under[tool.ruff]andpython-version = "3.11"under[tool.ty.environment]across the remaining 32 packages and project templates in openbb_platform/extensions, openbb_platform/providers, openbb_platform/obbject_extensions, and cookiecutter.requires-python = ">=3.11,<4"(bumped in [Feature] Drop Python 3.10 and Resolve Open Dependabot Alerts #7804); this aligns their linter and type-checker targets with the rest of the monorepo (matching core, cli, and rootuff.toml).
Ensures consistent tooling configuration across all monorepo packages, enabling Python 3.11 ruff rules and ty type-checking across all extensions and providers.
How has this been tested?
uff.toml ( arget-version = "py311").
Checklist
chore/chore-name.