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
/** | |
* DartPad Sharing Guide: https://github.com/dart-lang/dart-pad/wiki/Sharing-Guide | |
* Share: https://dartpad.dev/2989349c665a2ee2408bd9004d28a92a | |
*/ | |
class CustomException implements Exception { | |
final String message; | |
CustomException(this.message); |
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
import logging | |
import os | |
import uuid | |
from logging.handlers import TimedRotatingFileHandler | |
from typing import Dict, List | |
from pythonjsonlogger import jsonlogger | |
# root logger | |
log = logging.getLogger() |
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
#!/bin/sh | |
RED='\033[0;31m' | |
NC='\033[0m' # No Color | |
test_results=$(script -q /dev/null pipenv run python -m pytest ./test -v --tb=no) | |
if [ $? -eq 1 ]; then | |
printf "${RED}CANNOT COMMIT, PYTEST FAILED\n\nPYTEST RESULTS:\n" | |
echo "$test_results" | |
exit 1 | |
fi |