Skip to content

Make it easier to run flake8 for contributors #7991

@sirosen

Description

@sirosen

For an external contributor who drops by, it's not immediately obvious what the linting/testing expectations are. Testing is harder and more complicated, but I think linting could be smoothed out. For now, just looking at the flake8 usage: two easier options than the current flow.

  1. Add flake8 to pre-commit config
  2. Setup a tox.ini which allows for tox -e lint or similar to run linting

There are, of course, other options too, but these two are my preferred ones. The goal is to make installing flake8, flake8-pyi, and any other flake8 plugins a managed process via some tool.

Would either of these additions be welcome? If flake8 goes into pre-commit, then pre-commit.ci takes care of running it and perhaps it can be removed from GitHub actions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    project: policyOrganization of the typeshed project

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions