Skip to content

ci: run format checks on Python 3.11 with stable Black - #1271

Merged
hidb4ai merged 1 commit into
oceanbase:masterfrom
askdb:codex/ci-format-check-python311
Nov 19, 2026
Merged

hidb4ai merged 1 commit into
oceanbase:masterfrom
askdb:codex/ci-format-check-python311

Conversation

@askdb

@askdb askdb commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

The format check fails before Black runs because Python 3.8 is unavailable on the Ubuntu 26.04 runner selected by ubuntu-latest.

Use Python 3.11, matching the project's minimum supported Python version, and pin Black to 24.8.0 to preserve the existing formatting rules. Leaving Black unpinned on Python 3.11 currently installs Black 26.10.1, which would require unrelated formatting changes in 153 files.

Validation:

  • GitHub Actions format check passed, including Python 3.11 setup, Black installation, and the formatter check: https://github.com/oceanbase/obdiag/actions/runs/44485288591/job/135427108993
  • Parsed the workflow YAML and verified the Python version, pinned formatter, and unchanged black --check -S -l 256 . command.
  • Ran Black 24.8.0 on Python 3.11.14: all 446 Python files passed.
  • git diff --check passed.

This PR only changes .github/workflows/format_check.yml; no application code or formatting changes are included.

@hidb4ai
hidb4ai merged commit 9abba5c into oceanbase:master Nov 19, 2026
28 of 30 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