Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Add prospector to check python style
Browse files Browse the repository at this point in the history
  • Loading branch information
mozga-intel committed Oct 20, 2021
1 parent 08af07d commit e52a662
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
12 changes: 6 additions & 6 deletions ci/docker/runtime_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ sanity_check() {
sanity_clang
sanity_license
sanity_python
sanity_python_flake8
sanity_python_prospector
sanity_cpp
}

Expand All @@ -713,17 +713,17 @@ sanity_license() {
tools/license_header.py check
}

sanity_python_flake8() {
sanity_python_prospector() {
set -ex

# Install dependencies
pip3 install -r requirements-flake8.txt --user
pip3 install -r requirements-prospector.txt --user

# Run flake8
python3 -m flake8 | tee flake8-output.txt
python3 -m prospector | tee prospector-output.txt

if [ -s flake8-output.txt ]; then
echo 'Please fix the above Flake8 warnings.'
if [ -s prospector-output.txt ]; then
echo 'Please fix the above Prospector warnings.'
exit 1
fi
exit 0
Expand Down
5 changes: 0 additions & 5 deletions requirements-flake8.txt

This file was deleted.

1 change: 1 addition & 0 deletions requirements-prospector.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
prospector

0 comments on commit e52a662

Please sign in to comment.