Skip to content

Instantly share code, notes, and snippets.

View yezz123's full-sized avatar
πŸ¦‰
Building

Yasser Tahiri yezz123

πŸ¦‰
Building
View GitHub Profile
import re
from logging import CRITICAL, DEBUG, ERROR, INFO, NOTSET, WARNING, Formatter, LogRecord
from typing import Dict, Optional
import colorama
class Colors:
"""Available colors for log formatter."""
@yezz123
yezz123 / .checkov.yaml
Created July 2, 2024 14:57
Terraform Setup Linting
compact: true
output: cli
quiet: true
download-external-modules: true
evaluate-variables: true
import os
import ast
def extract_imports(file_path):
with open(file_path, 'r') as file:
tree = ast.parse(file.read())
imports = []
for node in ast.walk(tree):
if isinstance(node, ast.Import):