Fix pep8
This commit is contained in:
@ -19,7 +19,6 @@ import logging
|
||||
import pathlib
|
||||
import requests
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
from git import exc
|
||||
from git import Repo
|
||||
@ -77,9 +76,9 @@ def extract_keywords(result):
|
||||
|
||||
keywords = [kw.strip() for kw in keywords_text.split(",")]
|
||||
keywords = [kw for kw in keywords if kw and len(kw) > 0]
|
||||
|
||||
|
||||
keywords = keywords[:5]
|
||||
|
||||
|
||||
return ", ".join(keywords)
|
||||
|
||||
|
||||
@ -319,9 +318,9 @@ def process_service(args, service):
|
||||
|
||||
new_branch.checkout()
|
||||
|
||||
rst_files = list(repo_dir.rglob("doc/**/*.rst")) + \
|
||||
list(repo_dir.rglob("umn/**/*.rst")) + \
|
||||
list(repo_dir.rglob("api-ref/**/*.rst"))
|
||||
rst_files = (list(repo_dir.rglob("doc/**/*.rst"))
|
||||
+ list(repo_dir.rglob("umn/**/*.rst"))
|
||||
+ list(repo_dir.rglob("api-ref/**/*.rst")))
|
||||
|
||||
processed_count = 0
|
||||
updated_count = 0
|
||||
@ -457,4 +456,4 @@ def main():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user