Skip to content

chore: bump ruff to ~=0.15.15 and ty to ~=0.0.40#1636

Merged
hkad98 merged 1 commit into
gooddata:masterfrom
hkad98:chore/bump-ruff-ty
Jun 1, 2026
Merged

chore: bump ruff to ~=0.15.15 and ty to ~=0.0.40#1636
hkad98 merged 1 commit into
gooddata:masterfrom
hkad98:chore/bump-ruff-ty

Conversation

@hkad98
Copy link
Copy Markdown
Contributor

@hkad98 hkad98 commented Jun 1, 2026

Summary

Bumps the lint and type-check dev tooling to current releases:

  • ruff ~=0.15.1~=0.15.15
  • ty ~=0.0.14~=0.0.40

Updates pyproject.toml and regenerates uv.lock (resolves ruff 0.15.15 and ty 0.0.40) so local checks and CI run against current ruff/ty behavior.

jira: trivial
risk: nonprod

@hkad98 hkad98 requested review from jaceksan, lupko and pcerny as code owners June 1, 2026 11:32
@hkad98 hkad98 enabled auto-merge June 1, 2026 11:32
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 1, 2026

Codecov Report

❌ Patch coverage is 85.71429% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.10%. Comparing base (6e3ba76) to head (f9639cb).
⚠️ Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
...ages/gooddata-pandas/src/gooddata_pandas/series.py 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1636      +/-   ##
==========================================
+ Coverage   79.06%   79.10%   +0.03%     
==========================================
  Files         231      231              
  Lines       15667    15718      +51     
==========================================
+ Hits        12387    12433      +46     
- Misses       3280     3285       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Update the lint and type dev tooling to their latest patch/dev
releases so local checks and CI run against current ruff/ty behavior.
uv.lock regenerated to resolve ruff 0.15.15 and ty 0.0.40.

The stricter ty 0.0.40 surfaced four latent type issues; fix them so
`make types` stays green:

- gooddata-pandas series.py: isinstance(granularity, list) narrows the
  bare list to list[object], making the dict comprehension dict[str,
  object]; cast back to list[LabelItemDef] to keep the element type.
- gooddata-sdk filter.py: explicitly annotate the three
  _empty_value_handling attributes as EmptyValueHandling | None so the
  property return type matches (ty widened the narrowed value to str).
- gooddata-sdk dataset.py: drop the now-redundant cast in find_label;
  ty narrows next(filter(...), None) correctly without it.
- gooddata-pipelines logger.py: SingletonMeta.__call__ returned
  "SingletonMeta", typing every LogObserver() as the metaclass; make it
  generic (cls: type[_T]) -> _T and use type.__call__(cls, ...).

jira: trivial
risk: nonprod
@hkad98 hkad98 force-pushed the chore/bump-ruff-ty branch from d056c0e to f9639cb Compare June 1, 2026 11:49
@hkad98 hkad98 merged commit a21f854 into gooddata:master Jun 1, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants