From aebe746647f56e8b3b16ef92d4623c071108c1c2 Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Mon, 7 Nov 2022 10:44:14 +0100 Subject: [PATCH] Update spacy/cli/project/run.py Co-authored-by: Paul O'Leary McCann --- spacy/cli/project/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/cli/project/run.py b/spacy/cli/project/run.py index d9da1b6a8..638e7fab1 100644 --- a/spacy/cli/project/run.py +++ b/spacy/cli/project/run.py @@ -81,7 +81,7 @@ def project_run( if not skip_requirements_check: if config.get("check_requirements", True) and os.path.exists(req_path): with req_path.open() as requirements_file: - _check_requirements([req.replace("\n", "") for req in requirements_file]) + _check_requirements([req.strip() for req in requirements_file]) if subcommand in workflows: msg.info(f"Running workflow '{subcommand}'")