-
Notifications
You must be signed in to change notification settings - Fork 2
add mypy and update files #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Report bugs in Issues The following are automatically added:
Available user actions:
Supported /retest check runs
Supported labels
|
| data = subprocess.check_output(shlex.split("git diff HEAD^-1")) | ||
| data = data.decode("utf-8") | ||
| return data | ||
| return data.decode("utf-8") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utf-8 is the default; can be removed
|
|
||
| def git_diff_lines(): | ||
| diff = {} | ||
| def git_diff_lines() -> dict: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| def git_diff_lines() -> dict: | |
| def git_diff_lines() -> Dict: |
| polarion_test_ids, | ||
| polarion_project_id, | ||
| ): | ||
| polarion_test_ids: list, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| polarion_test_ids: list, | |
| polarion_test_ids: List, |
| ) -> list: | ||
| from pylero.work_item import TestCase, Requirement | ||
|
|
||
| tests_with_missing_requirements = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| tests_with_missing_requirements = [] | |
| tests_with_missing_requirements : List = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typing is missing in some definitions
| @click.option("--project-id", "-p", help="Provide the polarion project id") | ||
| @click.option("--verbosity", default=False, is_flag=True) | ||
| def has_verify(config_file_path, project_id, verbosity): | ||
| def has_verify(config_file_path: Any, project_id: str, verbosity: bool) -> Any: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why config_file_path is Any?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why -> Any, the function does not return anything
| """ | ||
|
|
||
| def is_func(_elm): | ||
| def is_func(_elm: Any) -> Any: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why Any? please fix in all places. this function returns bool
No description provided.