qa : differentiate framework from packages
This commit is contained in:
parent
190c437980
commit
3f20014f33
@ -25,9 +25,12 @@ script:
|
|||||||
- spack install -v libdwarf
|
- spack install -v libdwarf
|
||||||
# Run unit tests with code coverage
|
# Run unit tests with code coverage
|
||||||
- coverage run bin/spack test
|
- coverage run bin/spack test
|
||||||
# Checks if the file that have been changed are flake8 conformant
|
# Checks if the file that have been changed are flake8 conformant [framework]
|
||||||
- CHANGED_PYTHON_FILES=`git diff develop... --name-only | perl -ne 'print if /\.py$/'`
|
- CHANGED_PYTHON_FILES=`git diff develop... --name-only | perl -ne 'print if /\.py$/' | perl -ne 'print if not /var/' `
|
||||||
- if [[ ${CHANGED_PYTHON_FILES} ]] ; then flake8 --format pylint --config flake8-framework.ini ${CHANGED_PYTHON_FILES} ; fi
|
- if [[ ${CHANGED_PYTHON_FILES} ]] ; then flake8 --format pylint --config flake8-framework.ini ${CHANGED_PYTHON_FILES} ; fi
|
||||||
|
# Checks if the file that have been changed are flake8 conformant [packages]
|
||||||
|
- CHANGED_PACKAGES=`git diff develop... --name-only | perl -ne 'print if /\.py$/' | perl -ne 'print if /var/' `
|
||||||
|
- if [[ ${CHANGED_PACKAGES} ]] ; then flake8 --format pylint --config flake8-packages.ini ${CHANGED_PACKAGES} ; fi
|
||||||
|
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
[flake8]
|
[flake8]
|
||||||
ignore = W391,F403,E221,F821
|
ignore = W391,F403,E221
|
||||||
max-line-length = 79
|
max-line-length = 79
|
||||||
|
Loading…
Reference in New Issue
Block a user