-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Cariad Eccleston
authored
Mar 16, 2021
1 parent
6f71fea
commit 5c3fa57
Showing
15 changed files
with
104 additions
and
71 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,36 @@ | ||
#!/bin/bash -e | ||
|
||
li="\033[1;34m↪\033[0m " # List item | ||
ok="\033[0;32m✔️\033[0m " # OK | ||
|
||
while IFS="" read -r file_path | ||
do | ||
echo -e "${li:?}${file_path:?}" | ||
shellcheck --check-sourced --enable=all --severity style -x "${file_path:?}" | ||
done < <(find . -name "*.sh" -not -path "./.venv/*") | ||
|
||
echo -e "${li:?}Linting YAML..." | ||
yamllint . --strict | ||
|
||
echo -e "${li:?}Sorting Python import definitions..." | ||
if [[ "${CI:=}" == "true" ]]; then | ||
isort . --check-only --diff | ||
else | ||
isort . | ||
fi | ||
|
||
echo -e "${li:?}Applying opinionated Python code style..." | ||
if [[ "${CI:=}" == "true" ]]; then | ||
black . --check --diff | ||
else | ||
black . | ||
fi | ||
|
||
echo -e "${li:?}Checking PEP8 compliance..." | ||
flake8 . | ||
|
||
echo -e "${li:?}Checking Python types..." | ||
mypy progrow | ||
mypy tests | ||
|
||
echo -e "${ok:?}OK!" |
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
Empty file.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.