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

Merge branch...

Merge branch '64-flake8-not-running-for-files-with-pyhton-shebang-but-no-py-extension' into 'master'

Resolve "Flake8 not running for files with pyhton shebang but no py extension"

Closes #64

See merge request !96
parents 9e280897 d51d9093
No related branches found
No related tags found
1 merge request!96Resolve "Flake8 not running for files with pyhton shebang but no py extension"
Pipeline #160797 passed
.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:
......
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