From 4f77267171b3fdf2fcdaaa042381a94d9cd7712f Mon Sep 17 00:00:00 2001
From: Moul <moul@moul.re>
Date: Mon, 28 Oct 2019 07:35:16 +0200
Subject: [PATCH] [fix] 'poetry run' cli parsing changed in 1.0.0b3:

- '--' is necessary to pass options
- Update documentation and CI
- See https://github.com/sdispater/poetry/issues/1500
---
 .gitlab-ci.yml        | 4 ++--
 doc/install_poetry.md | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bceb21c0..8efc5475 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -63,8 +63,8 @@ tests-3.7-coverage:
   tags: [poetry-78]
   script:
     - poetry install
-    - poetry run pytest --cov silkaj --cov-report html:cov_html
-    - poetry run coverage-badge -o cov_html/coverage.svg
+    - poetry run -- pytest --cov silkaj --cov-report html:cov_html
+    - poetry run -- coverage-badge -o cov_html/coverage.svg
   artifacts:
     paths:
       - cov_html
diff --git a/doc/install_poetry.md b/doc/install_poetry.md
index febe9fdb..a85e2576 100644
--- a/doc/install_poetry.md
+++ b/doc/install_poetry.md
@@ -37,5 +37,5 @@ You might need to enter Poetry shell to access development tools such as `pytest
 
 Add following alias to your shell configuration:
 ```bash
-alias silkaj="cd /path/to/silkaj/silkaj && poetry run silkaj"
+alias silkaj="cd /path/to/silkaj/silkaj && poetry run -- silkaj"
 ```
-- 
GitLab