Skip to content
Snippets Groups Projects
Commit 61ae1bba authored by Jon Azpiazu's avatar Jon Azpiazu
Browse files

Add comment

parent 4e73683a
No related branches found
No related tags found
1 merge request!98Resolve "Flake8 in CI does not pass due to wrongful consideration of yaml file as a python file"
Pipeline #163058 passed
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
stage: build stage: build
before_script: ${PYTHON_VERSION} -m pip -q install flake8 before_script: ${PYTHON_VERSION} -m pip -q install flake8
script: script:
- find . -type f -executable ! -name "*.*" -exec awk ' /^#!.*python/{print FILENAME} {nextfile}' {} + > /tmp/python_files - find . -type f -executable ! -name "*.*" -exec awk ' /^#!.*python/{print FILENAME} {nextfile}' {} + > /tmp/python_files # python files with no extension but with shebang
- find . -type f -name "*.py" >> /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 - sort /tmp/python_files | uniq | xargs ${PYTHON_VERSION} -m flake8 --max-line-length 120 --statistics --show-source
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment