Skip to content

Instantly share code, notes, and snippets.

View FinalAngel's full-sized avatar
🖐️
>

Angelo Dini FinalAngel

🖐️
>
View GitHub Profile
@GaretJax
GaretJax / super.py
Created February 22, 2019 12:01
Automatically cleanup super calls for python3
import pathlib
import ast
import sys
import asttokens
import black
def walk(parent):
for path in parent.iterdir():
@GaretJax
GaretJax / on_delete.py
Last active February 25, 2019 10:00
Automatically add on_delete=models.CASCADE to source code where needed (mandatory in django 2.0)
import pathlib
import ast
import inspect
import asttokens
import black
def ForeignKey(
to,