From 52b5ef4f7e2dfac2d851e65fe14d451090e170ac Mon Sep 17 00:00:00 2001 From: Erik Martin-Dorel Date: Sun, 28 Jun 2020 12:52:28 +0200 Subject: [PATCH] chore: only require flake8 for lint-python job --- .gitlab-ci.yml | 3 ++- requirements.txt | 1 - requirements_lint.txt | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 requirements_lint.txt diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5249739..1446544 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,17 +8,18 @@ stages: image: python:3 before_script: - python --version - - pip install --no-cache-dir -r requirements.txt lint-python: stage: lint extends: .python script: + - pip install --no-cache-dir -r requirements_lint.txt - flake8 *.py test-python: stage: test extends: .python script: + - pip install --no-cache-dir -r requirements.txt - ./keeper.py --version - pytest *.py diff --git a/requirements.txt b/requirements.txt index 6bf98b2..a377749 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,3 @@ -flake8 pytest pyyaml requests diff --git a/requirements_lint.txt b/requirements_lint.txt new file mode 100644 index 0000000..3930480 --- /dev/null +++ b/requirements_lint.txt @@ -0,0 +1 @@ +flake8