These rules are adopted from the AngularJS commit conventions.
This file contains hidden or 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
#!/Library/Frameworks/Python.framework/Versions/3.7/bin/python3 | |
from jinja2 import Environment, FileSystemLoader | |
import yaml | |
import os | |
env = Environment(loader = FileSystemLoader(os.getcwd()), trim_blocks=True, lstrip_blocks=True) | |
template = env.get_template('somefile.j2') | |
config_data = yaml.load(open('vars.yml')) |
Riley smells
This file contains hidden or 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 boto3 | |
from email.mime.text import MIMEText | |
from email.mime.image import MIMEImage | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.application import MIMEApplication | |
from botocore.exceptions import ClientError | |
def send_message(from_email, to_emails, subject, images=[], attachments=[]): |
This file contains hidden or 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 contextlib | |
import OpenSSL.crypto | |
import os | |
import requests | |
import ssl | |
import tempfile | |
# mostly from another gist |
NewerOlder