Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Make checkers extensible via entry point pydocstyles_style #359

Closed
wants to merge 5 commits into from

Conversation

sambhav
Copy link
Member

@sambhav sambhav commented Apr 22, 2019

Dependent on PR #358.

This is an experimental PR based on the discussion from the google thread.
The only additional commit here apart from the #358 commits is c4aa001

which is approximately ~30 LoC

sambhav added 4 commits April 22, 2019 13:46
Does the following for the checkers -
 * Improves re compile. Currently we were doing a re compile inside
function calls. Moves this out so that this compile only happens once.
 * Improve checker code quality -
   * Current checker is stateless. It was still written as a class which
	added additional complexity with addition of passing of `self`
	`cls` and using staticmethod decorators.
   * Move the checker hook out of the class.
   * Slice up the checks into base, other and numpy style checks.
@sambhav sambhav changed the title Make checkers extensible via entry point pydocstyles_style Make checkers extensible via entry point pydocstyles_style Apr 22, 2019
@sambhav sambhav mentioned this pull request Apr 22, 2019
2 tasks
This commit adds an entry point called pydocstyle_styles
which allows checks to be loaded dynamically.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant