refactor: summarize error message without line number

This commit is contained in:
Florian Hönicke
2023-06-02 19:36:43 +02:00
parent d05ae5f6a7
commit 62715ffe2b
2 changed files with 8 additions and 2 deletions

View File

@@ -58,6 +58,8 @@ requests
streamlit
# invalid version 1.0beta5prerelease
google-api-python-client
# with comment
language-tool-python==2.5.3 # requires Java
"""
requirements_clean = """\
jina==111.222.333
@@ -67,7 +69,8 @@ pydub~=0.25.1
pdfminer.six~=20201018
requests~=2.26.0
streamlit~=0.89.0
google-api-python-client~=2.23.0"""
google-api-python-client~=2.23.0
language-tool-python==2.5.3"""
requirements_txt_path = os.path.join(tmpdir, "requirements.txt")
with open(requirements_txt_path, "w", encoding="utf-8") as f:
f.write(requirements_content)