mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 10:59:40 +00:00
Always run flake8 through pre-commit, and with doctests (#28490)
* Enable flake8 doctests everywhere * Always run flake8 through pre-commit
This commit is contained in:
@@ -120,7 +120,7 @@ async def pylint(files):
|
||||
|
||||
async def flake8(files):
|
||||
"""Exec flake8."""
|
||||
_, log = await async_exec("flake8", "--doctests", *files)
|
||||
_, log = await async_exec("pre-commit", "run", "flake8", "--files", *files)
|
||||
res = []
|
||||
for line in log.splitlines():
|
||||
line = line.split(":")
|
||||
|
||||
Reference in New Issue
Block a user