-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b3f323
commit acb134e
Showing
2 changed files
with
28 additions
and
0 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,5 @@ | |
# Ignore Mac folder profile files | ||
*DS_Store* | ||
|
||
# Ignore temp file for linter output | ||
_lint.txt |
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,26 @@ | ||
#!/bin/sh | ||
|
||
# Check how many lines there are in module - excludes blank lines | ||
printf "\n\n\n\n CHECK MODULE SIZE:" | ||
printf "\nNumber of lines of code & comments in ERP-SCANR: " | ||
find ./fooof -name "*.py" -type f -exec grep . {} \; | wc -l | ||
|
||
# Check number of files using cloc | ||
printf "\n\n\n CLOC OUTPUT (EXCLUDING TESTS): \n" | ||
cloc fooof --exclude-dir='tests' | ||
|
||
#printf "\n\n\n CLOC OUTPUT - TEST FILES: \n" | ||
#cloc fooof/tests --exclude-dir='data' | ||
|
||
# Run Tests & Check Coverage | ||
#printf "\n\n\n RUN TESTS & TEST COVERAGE: \n" | ||
#coverage run --source fooof --omit="*/plts/*" -m py.test | ||
#coverage report | ||
|
||
# Find a way to get summary from pylint? | ||
printf "\n\n\n RUN PYLINT ACROSS MODULE: \n" | ||
pylint fooof -> _lint.txt | ||
tail -n5 _lint.txt | ||
|
||
# Print out some new lines | ||
printf "\n\n\n" |