astral-sh / astral-sh/ruff

Support `flake8-class-attributes-order`

Open
#2,425 7 comments 67 reactions 0 assignees View on GitHub
needs-decision plugin
Dominant language
Rust
Stars
49.6k
Forks
2.4k
Avg merge
1d 15h
Merged PRs (30d)
414

Description

Hello,
Is there a plan to support this flake8 extension?
https://pypi.org/project/flake8-class-attributes-order/

_Originally posted by @WorkHardes in https://github.com/charliermarsh/ruff/issues/106#issuecomment-1347928865_

- [ ] `CCE001`: Wrong class attributes order (`XXX should be after YYY`)
- [ ] `CCE002`: Class level expression detected

Contributor guide

Open the contributing guide

Research direction

Start by reading the flake8-class-attributes-order documentation linked in the issue and reviewing how Ruff represents comparable lint rules. Implement support for CCE001 and CCE002, including their reported messages, then verify that both diagnostics are detected with the requested ordering and class-level expression cases.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.