Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
templates
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tecnalia_robotics-public
templates
Merge requests
!80
Resolve "python_syntax is python2 only"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Resolve "python_syntax is python2 only"
48-python_syntax-is-python2-only
into
master
Overview
40
Commits
12
Pipelines
13
Changes
1
Merged
Resolve "python_syntax is python2 only"
Jon Azpiazu
requested to merge
48-python_syntax-is-python2-only
into
master
Jun 13, 2022
Overview
32
Commits
12
Pipelines
13
Changes
1
Closes
#48 (closed)
Edited
Jun 13, 2022
by
Jon Azpiazu
0
0
Merge request reports
Compare
master
version 12
3c683127
Dec 18, 2023
version 11
30d754f0
Dec 18, 2023
version 10
b713a597
Dec 18, 2023
version 9
6b93b657
Dec 18, 2023
version 8
fb49ba38
Dec 18, 2023
version 7
7a263772
Dec 18, 2023
version 6
8c0a161e
Sep 27, 2023
version 5
ff8b10d6
Sep 27, 2023
version 4
ff8b10d6
Sep 27, 2023
version 3
eb815306
Jun 17, 2022
version 2
df025d18
Jun 17, 2022
version 1
470bc229
Jun 13, 2022
master (base)
and
version 1
latest version
a8ff0415
12 commits,
Dec 18, 2023
version 12
3c683127
11 commits,
Dec 18, 2023
version 11
30d754f0
10 commits,
Dec 18, 2023
version 10
b713a597
9 commits,
Dec 18, 2023
version 9
6b93b657
8 commits,
Dec 18, 2023
version 8
fb49ba38
7 commits,
Dec 18, 2023
version 7
7a263772
6 commits,
Dec 18, 2023
version 6
8c0a161e
5 commits,
Sep 27, 2023
version 5
ff8b10d6
4 commits,
Sep 27, 2023
version 4
ff8b10d6
4 commits,
Sep 27, 2023
version 3
eb815306
3 commits,
Jun 17, 2022
version 2
df025d18
2 commits,
Jun 17, 2022
version 1
470bc229
1 commit,
Jun 13, 2022
1 file
+
36
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
ci-templates/syntax-check.yml
+
36
−
9
View file @ 470bc229
Edit in single-file editor
Open in Web IDE
Show full file
@@ -16,16 +16,43 @@ clang_format:
when
:
always
##########################################################
## Simple check for basic Python syntax errors; this is much less thorough than
## other options like pylint, but much faster and less strict
## Several Python checks
##########################################################
python_syntax
:
image
:
alpine:3.15
# python2 is no longer available in alpine:3.16
before_script
:
-
apk add --update python2
stage
:
build
script
:
python -m compileall -q .
when
:
always
flake8
:
stage
:
.post
image
:
python:3-alpine
before_script
:
-
pip3 install flake8
script
:
-
flake8 --max-line-length 120 --statistics --show-source .
tags
:
-
docker
when
:
always
flake8_extended
:
stage
:
.post
image
:
python:3-alpine
before_script
:
-
pip3 install flake8 flake8-isort flake8-builtins flake8-eradicate flake8-functions-names flake8-return flake8-functions
script
:
-
flake8 --max-line-length 120 --statistics --show-source .
tags
:
-
docker
when
:
always
allow_failure
:
true
python_security
:
stage
:
.post
image
:
python:3-alpine
before_script
:
-
pip3 install bandit safety
script
:
-
bandit -r . || RET=1
-
safety check || RET=1
-
exit $RET
tags
:
-
docker
when
:
always
##########################################################
## Check for errors in bash/sh scripts
Loading