psf / psf/black

Cython grammar support

Open
#359 22 comments 183 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C: parser help wanted S: accepted T: enhancement
Dominant language
Python
Stars
41.8k
Forks
2.9k
Avg merge
5d 6h
Merged PRs (30d)
9

Description

We'd like to be able to format .pyx, .pxd, and .pxi files, too.

Contributor guide

Open the contributing guide

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.

Research direction

Start by tracing how Black identifies and parses input files, then investigate the grammar differences in .pyx, .pxd, and .pxi files. Done means Black can format all three Cython file types without regressing existing Python formatting behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.