尝试gitlab ci集成,并在尝试运行flake8 check时遇到此问题
ci配置
image: "python:3.9"
before_script:
- python --version
- pip install pipenv
- pipenv install
stages:
- Static Analysis
flake8:
stage: Static Analysis
script:
- pipenv run flake8 --max-line-length=120 sample/*.py$ pipenv run flake8 --max-line-length=120 sample/*.py
Error: the command flake8 could not be found within PATH or Pipfile's [scripts].发布于 2020-12-27 21:28:45
通过使用
pipenv install --deploy --dev最终
image: "python:3.9"
before_script:
- python --version
- pip install pipenv
- pipenv install --deploy --dev
stages:
- Static Analysis
flake8:
stage: Static Analysis
script:
- pipenv run flake8 --max-line-length=120 sample/*.pyhttps://stackoverflow.com/questions/65466006
复制相似问题