PyCQA / PyCQA/pycodestyle

Example showing string parsing instead of file parsing?

Open
#889 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
5.2k
Forks
754
PR merge metrics
No merged PRs in 30d

Description

I'm trying to implement pycodestyle in an add-on for the Blender Text Editor, but having pycodestyle to read re-saved file, while editing is too slow, so my question is if it is possible to parse a string directly instead of opening a saved file? And if yes, then my next question is if there are any examples showing how to do that?

I'm sorry I couldn't find a forum dealing with pycodestyle, to ask this question.

Example of slow processing over harddisk:
Py_code_style

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 with pycodestyle's single Python file and inspect how its existing file-based entry points receive input. Determine whether an in-memory string is supported, then document a minimal usage example for the Blender Text Editor use case; done means the example is clear without requiring a saved file.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.