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
!96
Resolve "Flake8 not running for files with pyhton shebang but no py extension"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Resolve "Flake8 not running for files with pyhton shebang but no py extension"
64-flake8-not-running-for-files-with-pyhton-shebang-but-no-py-extension
into
master
Overview
4
Commits
3
Pipelines
4
Changes
1
All threads resolved!
Hide all comments
Merged
Resolve "Flake8 not running for files with pyhton shebang but no py extension"
Iñigo Moreno i Caireta
requested to merge
64-flake8-not-running-for-files-with-pyhton-shebang-but-no-py-extension
into
master
Feb 27, 2024
Overview
4
Commits
3
Pipelines
4
Changes
1
All threads resolved!
Hide all comments
Closes
#64 (closed)
0
0
Merge request reports
Compare
master
version 2
034d4cc9
Feb 27, 2024
version 1
09619e7d
Feb 27, 2024
master (base)
and
latest version
latest version
d51d9093
3 commits,
Feb 27, 2024
version 2
034d4cc9
2 commits,
Feb 27, 2024
version 1
09619e7d
1 commit,
Feb 27, 2024
1 file
+
5
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
ci-templates/python.yml
+
5
−
4
View file @ d51d9093
Edit in single-file editor
Open in Web IDE
Show full file
.flake8_template
:
stage
:
build
before_script
:
${PYTHON_VERSION} -m pip -q install flake8
script
:
${PYTHON_VERSION} -m flake8 --max-line-length 120 --statistics --show-source .
script
:
-
find . -type f -executable -exec awk ' /^#!.*python/{print FILENAME} {nextfile}' {} + > /tmp/python_files
-
find . -type f -name "*.py" >> /tmp/python_files
-
sort /tmp/python_files | uniq | xargs ${PYTHON_VERSION} -m flake8 --max-line-length 120 --statistics --show-source
.flake8_extended_template
:
extends
:
.flake8_template
stage
:
.post
before_script
:
-
${PYTHON_VERSION} -m pip install flake8 flake8-isort flake8-builtins flake8-eradicate flake8-functions-names flake8-return flake8-functions
script
:
${PYTHON_VERSION} -m flake8 --max-line-length 120 --statistics --show-source .
allow_failure
:
true
.security_template
:
Loading