Linting job fails on ubuntu-26.04: pre-commit builds black 20.8b1 with Python 3.14

未关闭
#6,425 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
20/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
github-actions, python
领域
ci-cd, tooling

调研方向

Read .github/workflows/pre-commit.yml and .pre-commit-config.yaml, then inspect the failing lint runs linked in the issue to confirm how the hook environment selects Python. Find a way for the All file linting job to pass on ubuntu-26.04 while keeping Black's formatting output unchanged; validate against the existing codebase.

由索引模型根据 Issue 内容生成。

描述

bug DEV: dev-ops

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Overview

The All file linting job in .github/workflows/pre-commit.yml fails on every PR since ubuntu-latest moved to the ubuntu-26.04 image (20261111.196.1). pre-commit installs the black hook (rev: 20.8b1 in .pre-commit-config.yaml) into a Python 3.14 env; black 20.8b1 depends on typed-ast, which does not compile against Python 3.14.

Complexity: Low
Target branch: unstable

Context
ast27/Custom/../Include/../Include/asdl.h:12:15: error: cannot use keyword 'false' as enumeration constant
ERROR: Failed building wheel for typed-ast
Acceptance Criteria
  • All file linting passes on a PR with no lint violations on the ubuntu-26.04 runner image.
  • Hook output (formatting applied by black) is unchanged for the existing codebase.

AI usage

Claude Code diagnosed the failure from the CI logs while working on #6423 and drafted this issue.

主要语言
JavaScript
星标
214
派生
327
平均合并
17 小时 5 分钟
30 天内合并 PR
25

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

learningequality/studio 的其他 Issue

查看 learningequality/studio 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。