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

Open
#6,425 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
20/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
github-actions, python
Domain
ci-cd, tooling

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

Dominant language
JavaScript
Stars
214
Forks
327
Avg merge
17h 5m
Merged PRs (30d)
25

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from learningequality/studio

All issues in learningequality/studio

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.