Skip to content

Instantly share code, notes, and snippets.

View emanlove's full-sized avatar

Ed Manlove emanlove

  • Rhode Island
View GitHub Profile
@mkorpela
mkorpela / analysis.py
Last active October 1, 2024 11:41
Repository Activity Measure
# pip install gitpython numpy tqdm
import git
from collections import defaultdict
from datetime import timedelta
import numpy as np
import argparse
from tqdm import tqdm
def analyze_repo(repo_path, branch='main'):
repo = git.Repo(repo_path)
@aaltat
aaltat / py_finder.py
Last active March 2, 2020 00:03
Find files which are not Python 3 compatible
import argparse
import subprocess
from pathlib import Path
def find_files(src_root: Path, python3: Path):
not_py3_compatible = []
for file in src_root.rglob('*.py'):
print(file.resolve())
@Tset-Noitamotua
Tset-Noitamotua / README.md
Last active January 13, 2025 12:19
HOW-TO enable MarkDown support in RobotFramework

HOW-TO enable MarkDown support in RobotFramework

You want to execute robot test which are inside fenced code blocks of a markdown file (.md) like any normal robot test? Follow the steps below then you can run your tests as simple as robot your_test_suite.md with all robot command line execution options.

This will add support for .md files to RF

  1. Clone [RobotFramework][4] repository
  2. Save the code below as 'mdreader.py' in parsing folder of your local clone. It's based on [restreader.py][1]
  3. Add this from .mdreader import MarkDownReader [here][2] to your local clone.
@mkorpela
mkorpela / find_unused.py
Created January 20, 2012 11:57
Finding unused Robot Framework user keywords
import sys
from robotide.controller.chiefcontroller import ChiefController
from robotide.controller.commands import NullObserver
from robotide.controller.filecontrollers import DirectoryController
from robotide.namespace import Namespace
from robotide.spec.iteminfo import LibraryKeywordInfo
from robotide.usages.commands import FindUsages
def construct_chief_controller(datapath):