Skip to content

Path to source files added in verbose mode#8536

Merged
JukkaL merged 0 commit into
python:masterfrom
davidzwa:master
Apr 17, 2020
Merged

Path to source files added in verbose mode#8536
JukkaL merged 0 commit into
python:masterfrom
davidzwa:master

Conversation

@akerami

@akerami akerami commented Mar 13, 2020

Copy link
Copy Markdown
Contributor

Implementation of parts of #6544 , namely of printing the path of the source files given to be processed by mypy. Tested using the command line as well as a configuration file.

@msullivan

Copy link
Copy Markdown
Collaborator

There are a bunch of test failures. I'll take a look if you fix them.

akerami added a commit to davidzwa/mypy that referenced this pull request Mar 14, 2020
For failing tests of python#8536
akerami added a commit to davidzwa/mypy that referenced this pull request Mar 18, 2020
For failing tests of python#8536.
For the last push I didn't take into account the result of the runtest file which is why 1 test case (for Travis )was failing.

@JukkaL JukkaL left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the PR! I left some comments below.

Comment thread mypy/build.py Outdated
src_pth_str += "s"
configuration_vars.append((src_pth_str, ""))
for source_path in src_pths:
configuration_vars.append(("." * len(src_pth_str), source_path))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This looks odd to me. For consistency with other verbose, I think that it would be better to show all source paths on a single line, separated by spaces.

Comment thread mypy/build.py Outdated
for source_path in src_pths:
configuration_vars.append(("." * len(src_pth_str), source_path))
elif len(src_pths) == 1:
configuration_vars.append((src_pth_str, src_pths.copy().pop()))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This case will go away once you implement the suggestion above.

Comment thread mypy/build.py Outdated
("Configured Executable", manager.options.python_executable),
]

src_pth_str = "Source Path File"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This would clearer if it would be just "Source Path".

@akerami

akerami commented Mar 19, 2020

Copy link
Copy Markdown
Contributor Author

Thanks! I will make the changes.

akerami added a commit to davidzwa/mypy that referenced this pull request Mar 20, 2020
For python#8536 feedback of core team leader is applied to code.
@JukkaL JukkaL merged commit b8bdc26 into python:master Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants