mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 19:09:32 +00:00
Script/lint, Lazytox: Fix issue to ignore delete files (#13051)
* Fix issue to ignore delete files * Updated lazytox
This commit is contained in:
@@ -127,6 +127,7 @@ async def flake8(files):
|
||||
|
||||
async def lint(files):
|
||||
"""Perform lint."""
|
||||
files = [file for file in files if os.path.isfile(file)]
|
||||
fres, pres = await asyncio.gather(flake8(files), pylint(files))
|
||||
|
||||
res = fres + pres
|
||||
@@ -182,7 +183,8 @@ async def main():
|
||||
gen_req = True # requirements script for components
|
||||
# Find test files...
|
||||
if fname.startswith('tests/'):
|
||||
if '/test_' in fname: # All test helpers should be excluded
|
||||
if '/test_' in fname and os.path.isfile(fname):
|
||||
# All test helpers should be excluded
|
||||
test_files.add(fname)
|
||||
else:
|
||||
parts = fname.split('/')
|
||||
|
||||
Reference in New Issue
Block a user