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

semver checker: do not return error msg on new args with default values #202

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

Conversation

ylil93
Copy link
Contributor

@ylil93 ylil93 commented Dec 12, 2018

  • updates package crawler to only include class/function args that don't have default values
  • update docstrings/comments

@ylil93 ylil93 force-pushed the semver_checker branch 2 times, most recently from b6f56e6 to 18572d0 Compare December 18, 2018 21:17
- neither regular nor optional args cannot be removed
- args can be added as optional args
- arg order must be preserved
- default values must be preserved
- required args can be made optional
- logic currently assumes *args and **kwargs are the last two args
- added more test cases
'single_args': [arg1, arg2, ...],
'defaults': {arg1: value1, ...},
'vararg': argv,
'kwarg': kwargs,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't you need to know the position of these things?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get the args using ast tooling which returns the args in order.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants