From 7cb447bbaaba5a3915db53f7536fc2e907c2d3c7 Mon Sep 17 00:00:00 2001 From: Taddes Date: Wed, 31 Jul 2024 13:55:24 -0400 Subject: [PATCH] update .flake8 config to ignore venv --- .flake8 | 1 + tools/user_migration/old/dump_mysql.py | 3 +-- tools/user_migration/old/migrate_user.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.flake8 b/.flake8 index 2d4856248b..775aa6715a 100644 --- a/.flake8 +++ b/.flake8 @@ -2,6 +2,7 @@ exclude = .git, __pycache__, + venv/ # E203: Whitespace before ':'. Addresses a discrepancy with Black slice formatting. ignore = E203 max-line-length = 99 diff --git a/tools/user_migration/old/dump_mysql.py b/tools/user_migration/old/dump_mysql.py index 3fc2808e4f..25b430414d 100644 --- a/tools/user_migration/old/dump_mysql.py +++ b/tools/user_migration/old/dump_mysql.py @@ -16,7 +16,6 @@ import csv import math import os -import random import re import time @@ -31,7 +30,7 @@ from urlparse import urlparse -MAX_ROWS = 1500000 +MAX_ROWS = 1_500_000 class BadDSNException(Exception): diff --git a/tools/user_migration/old/migrate_user.py b/tools/user_migration/old/migrate_user.py index 720905ec94..119a647a36 100644 --- a/tools/user_migration/old/migrate_user.py +++ b/tools/user_migration/old/migrate_user.py @@ -9,6 +9,7 @@ import argparse import base64 +import json import logging import os import sys