PyCQA / PyCQA/flake8-import-order
Implement PyLint plugin
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 280
- Forks
- 72
- Avg merge
- 12h 24m
- Merged PRs (30d)
- 1
Description
This requires some cleanup of ImportOrderChecker and ImportVisitor first.
In particular there needs to be a clearer separation between getting the import data out of the AST and generating the sort keys that are used to check the ordering. We can then use an RawChecker in PyLint to extract the imports and run the check. This is currently a little complicated due to differences in stdlib ast and astdroid.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading ImportOrderChecker and ImportVisitor, focusing on how import data is extracted from the AST and how sort keys are generated. Compare the stdlib ast and astdroid differences before determining how a PyLint RawChecker should extract imports. Done means the cleanup is complete and the PyLint plugin can run the import-order check.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100