Skip to content

Instantly share code, notes, and snippets.

View lixxday's full-sized avatar
🐑

Corentin Normant lixxday

🐑
View GitHub Profile
import os
# First, run `mypy --show-error-codes --config-file mypy.ini src > mypy_results.txt`
def remove_unused_type_ignore():
result_dict = {}
with open(
os.path.abspath(os.getcwd()) + "/mypy_results.txt", "r", encoding="utf8"
import os
# First, run `mypy --show-error-codes src > mypy_results.txt`
def add_type_ignore() -> None:
result_dict: dict = {}
with open(os.path.abspath(os.getcwd()) + "/mypy_results.txt", "r", encoding="utf8") as file_pointer:
#!/bin/bash
# virtualenv-auto-activate.sh
#
# Installation:
# Add this line to your .bashrc or .bash-profile:
#
# source /path/to/virtualenv-auto-activate.sh
#
# The virtualenv will be activated automatically when you enter the directory.