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:
parent
d9edd42532
commit
bb37bc32e3
4 changed files with 4 additions and 3 deletions
|
@ -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(":")
|
||||
|
|
|
@ -15,7 +15,7 @@ printf "%s\n" $files
|
|||
echo "================"
|
||||
echo "LINT with flake8"
|
||||
echo "================"
|
||||
flake8 --doctests $files
|
||||
pre-commit run flake8 --files $files
|
||||
echo "================"
|
||||
echo "LINT with pylint"
|
||||
echo "================"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue