Skip to content
This repository has been archived by the owner on Oct 2, 2020. It is now read-only.

Move rule descriptions to rule class docstrings #243

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Ratfink
Copy link
Collaborator

@Ratfink Ratfink commented May 24, 2018

As I wrote in #220, the rule class docstrings seem like a more sensible place for rule descriptions than burying them in the __init__ method. I offered to make this change a couple of months ago, and have seen no objections, so here it is.

While moving the descriptions, I changed them all to match the one-line rule names in KLC 3.0.11, the current revision. All the docstrings I touched now come at least reasonably close to following PEP 257. Hooray for good code style!

In moving the descriptions out of the constructor, many rule classes no longer need to define their own constructors at all, so overall this reduces how much code we have to maintain.

Fixes #220.

As I wrote in KiCad#220, the rule class docstrings seem like a more sensible
place for rule descriptions.  I offered to make this change a couple of
months ago, and have seen no objections, so here it is.

While moving the descriptions, I changed them all to match the one-line
rule names in KLC 3.0.11, the current revision.

In moving the descriptions out of the constructor, many rule classes no
longer need to define their own constructors at all, so overall this
reduces how much code we have to maintain.
@poeschlr
Copy link
Collaborator

Good idea. However we have a merge conflict now as i merged other stuff. Could you look into that?

@Ratfink
Copy link
Collaborator Author

Ratfink commented Oct 5, 2018

The conflict has been resolved; can this be merged now?

@evanshultz
Copy link
Collaborator

@poeschlr
Do you still want to revisit this? If so, we'll need to merge in master in order to merge this PR.

@poeschlr poeschlr added the Abandoned Original author has stopped working on the PR label Mar 7, 2020
@poeschlr
Copy link
Collaborator

poeschlr commented Mar 7, 2020

It is a good idea in general but i suspect @Ratfink will no longer work on this. Maybe somebody with a lot of time on their hand will continue this effort.

Which is why i marked it as abandoned as users can then search for this label for things they can help with.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Abandoned Original author has stopped working on the PR Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

KLCRule subclasses have unhelpful docstrings
3 participants