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

Đang mở
#6,425 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
20/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, python
Lĩnh vực
ci-cd, tooling

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
JavaScript
Star
214
Fork
327
Merge trung bình
17 giờ 5 phút
Pull request đã merge (30 ngày)
25

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của learningequality/studio

Tất cả issue của learningequality/studio

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.