Commit 25a130ad authored by Gadhave's avatar Gadhave
Browse files

Update .gitlab-ci.yml file

parent 5aa68b93
Pipeline #12033 failed
check-docker-versions: stages:
image: docker:24 -lint
services: # -test
- docker:24-dind # -build
variables: # - deploy
DOCKER_HOST: "tcp://docker:2375/"
DOCKER_TLS_CERTDIR: "" variables:
PYTHONPATH: "${CI_PROJECT_DIR}"
DOCKER_DRIVER: overlay2
DOCKER_REGISTRY: "docker.io"
before_script:
-echo "Running pipeline for commit : ${CI_COMMIT_SHA}"
lint:
stage: lint
image: python:3.10
before_script :
- pip install --upgrade pip
-pip install flake8
script: script:
- docker --version - echo "Linting Python code.."
- docker-compose --version || echo "docker-compose not installed" - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- echo "Done running the Python Lint stage"
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment