I hereby claim:
- I am warlo on github.
- I am hanswilw (https://keybase.io/hanswilw) on keybase.
- I have a public key ASD9M0vIYegMp78cEsRGM3N-PRBywka8tB7mO8n_tnR3Dwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import re | |
import codemod | |
import inflection | |
REG = r"(.*)(test\w*[A-Z]\w*)(\(.*)" | |
test_regex = re.compile(REG) | |
def snake_patches(list_of_lines): | |
patches = [] |
def queryset_in_batches_non_slicing(queryset, chunk_size=1000): | |
""" | |
Iterate over a Django queryset that is ordered by primary key. | |
Differs from `queryset_batch_iterator` by not slicing the queryset and filters naively on | |
upper and lower bounds using pk and chunk size. This allows queryset operations to be performed | |
such as `.update()` and `.delete()` | |
""" | |
pk = 0 |
#!/usr/bin/env python3 | |
import subprocess | |
FLAKE_COMMA_KEY = 'C812' | |
def run_flake(): | |
""" | |
Helper method to run flake8 as bash script | |
""" |
I hereby claim:
To claim this, I am signing this object: