Skip to content

Tooling updates: hatch, mypy, pylint, pytest #323

Merged
asnare merged 7 commits intomainfrom
dependency-updates
Mar 12, 2026
Merged

Tooling updates: hatch, mypy, pylint, pytest #323
asnare merged 7 commits intomainfrom
dependency-updates

Conversation

@asnare
Copy link
Contributor

@asnare asnare commented Mar 10, 2026

This PR updates the versions of some of our tools used for project linting and tests:

  • Hatch: 1.14.2 → 1.16.5 (older versions are broken due to pip changes)
  • Mypy: 1.18.0 → 1.19.1 (improved type checking)
  • PyLint: 4.0.0 → 4.0.5 (allowing removal of a workaround for the pytest integration)
  • PyTest: 8.1.0 → 9.0.2 (and associated plugins)

Further to this, an unreliable test was fixed:

  • test_user_agent_is_propagated: was sensitive to the side-effects of other tests that register CLI commands: user-agent updates are cumulative and global.

@asnare asnare self-assigned this Mar 10, 2026
@asnare asnare added the dependencies Pull requests that update a dependency file label Mar 10, 2026
@asnare asnare added this to UCX Mar 10, 2026
@asnare asnare added internal do not show this PR in changelog tech debt labels Mar 10, 2026
@asnare asnare moved this to In Progress in UCX Mar 10, 2026
@codecov
Copy link

codecov bot commented Mar 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.11%. Comparing base (53ae72d) to head (335b996).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #323      +/-   ##
==========================================
+ Coverage   80.07%   80.11%   +0.04%     
==========================================
  Files          17       17              
  Lines        2474     2474              
  Branches      533      403     -130     
==========================================
+ Hits         1981     1982       +1     
  Misses        364      364              
+ Partials      129      128       -1     

☔ 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.

asnare added 2 commits March 10, 2026 17:57
Multiple tests trigger `cmd` registration, and these accumulate without resetting. This test was therefore flaky, depending on the order in which tests run. (Type hints are also fully implemented.)
@asnare asnare marked this pull request as ready for review March 10, 2026 17:38
@asnare asnare requested a review from a team as a code owner March 10, 2026 17:38
@asnare asnare moved this from In Progress to Ready for Review in UCX Mar 10, 2026
@github-actions
Copy link

✅ 40/40 passed, 2 skipped, 1m39s total

Running from acceptance #383

@asnare asnare changed the title Tooling updates: mypy, pylint, pytest Tooling updates: hatch, mypy, pylint, pytest Mar 10, 2026
Copy link

@m-abulazm m-abulazm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@asnare asnare merged commit 591a464 into main Mar 12, 2026
15 checks passed
@asnare asnare deleted the dependency-updates branch March 12, 2026 08:55
@github-project-automation github-project-automation bot moved this from Ready for Review to Done in UCX Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file internal do not show this PR in changelog tech debt

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants