-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a presubmit for integration tests and fixing the generators one
- Loading branch information
1 parent
41e6da1
commit 4486a36
Showing
8 changed files
with
51 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ web_docs | |
__pycache__/ | ||
build/ | ||
export_packs/ | ||
.cache/clangd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
error_count=0 | ||
|
||
source ../venv/bin/activate | ||
|
||
readarray -d '' FILES < <(find . -type f -name "*.py" -not -path "*/venv/*" -print0) | ||
|
||
# Lint Python Files | ||
flake8 --ignore=E501,E266,W503 "${FILES[@]}" | ||
if (( $? > 0 )); then | ||
echo "Flake8 Error" | ||
error_count=`expr $error_count + 1` | ||
fi | ||
|
||
# Type Check Python Files | ||
mypy --strict "${FILES[@]}" | ||
if (( $? > 0 )); then | ||
echo "mypy error" | ||
error_count=`expr $error_count + 1` | ||
fi | ||
|
||
|
||
exit $error_count |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters