Script/lint, Lazytox: Fix issue to ignore delete files#13051
Script/lint, Lazytox: Fix issue to ignore delete files#13051balloob merged 2 commits intohome-assistant:devfrom cdce8p:script-lint-lazytox-fix
Conversation
|
In general, I'm for this fix. But in the Lazytox is supposed to be "intelligent" and automatically run matching tests. For example, deleting I think a small check in the # in async def lint(files):
files = [f for f in files if os.path.isfile(f)] |
|
We already test if files exist for pytest and would be nice to do the same for linting, then it also covers the commandline files and uses those for guessing pytest as Otto mentioned |
|
Would have implemented it slightly different. Where |
|
Scratch that. We need pyfiles in tact for pytest calcs :-) |
Description:
git diffnow ignores deleted files for pylint.Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.io#4877
CC: @kellerza