-
-
Notifications
You must be signed in to change notification settings - Fork 108
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
24 lines (18 loc) · 640 Bytes
/
Copy path.gitlab-ci.yml
File metadata and controls
24 lines (18 loc) · 640 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
image: "python:3.11"
before_script:
#- cp /etc/gitlab-runner/certs/ca.crt /usr/local/share/ca-certificates/ca.crt
#- update-ca-certificates
- python3 --version
#- pip install -r requirements.txt
- pip install flake8
- pip install pylint
- pip install bandit
stages:
- Static Analysis
static_analysis:
stage: Static Analysis
tags: ["dev","python"]
allow_failure: true
script:
- flake8 --max-line-length=280 --ignore=W605,E275,W503
- pylint . --recursive=y --disable=W0613,C0115,E0401,R0911,R0912,R0913,R0915,R0903,W0201,R1702,W1401,R0902,R0914,W0718,W1203,R0916,C0103,W0231,W0719,R0904 --max-line-length=280