@@ -1,7 +1,7 @@
#!/usr/bin/env python3
-import shlex
import re
+import shlex
import sys
import aurweb.config
@@ -1,12 +1,12 @@
#!/usr/bin/env python3
import os
-import pygit2
import re
import subprocess
import sys
import time
+import pygit2
import srcinfo.parse
import srcinfo.utils
@@ -1,11 +1,12 @@
-import aurweb.db
-import aurweb.schema
+import argparse
import alembic.command
import alembic.config
-import argparse
import sqlalchemy
+import aurweb.db
+import aurweb.schema
+
def feed_initial_data(conn):
conn.execute(aurweb.schema.AccountTypes.insert(), [
@@ -6,7 +6,7 @@ usually be automatically generated. See `migrations/README` for details.
"""
-from sqlalchemy import CHAR, Column, ForeignKey, Index, MetaData, String, TIMESTAMP, Table, Text, text
+from sqlalchemy import CHAR, TIMESTAMP, Column, ForeignKey, Index, MetaData, String, Table, Text, text
from sqlalchemy.dialects.mysql import BIGINT, DECIMAL, INTEGER, TINYINT
from sqlalchemy.ext.compiler import compiles
@@ -1,8 +1,9 @@
#!/usr/bin/env python3
-import pyalpm
import re
+import pyalpm
+
import aurweb.config
import aurweb.db
@@ -1,9 +1,10 @@
#!/usr/bin/env python3
-import pygit2
import sys
+
import bleach
import markdown
+import pygit2
import aurweb.config
import aurweb.db
@@ -1,10 +1,11 @@
-import aurweb.db
-import aurweb.schema
-
-from alembic import context
import logging.config
+
import sqlalchemy
+from alembic import context
+
+import aurweb.db
+import aurweb.schema
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
@@ -10,12 +10,11 @@ usage: gendummydata.py outputfilename.sql
# insert these users/packages into the AUR database.
#
import hashlib
-import random
-import time
+import logging
import os
+import random
import sys
-import logging
-
+import time
LOG_LEVEL = logging.DEBUG # logging level. set to logging.INFO to reduce output
SEED_FILE = "/usr/share/dict/words"
@@ -2,3 +2,7 @@
max-line-length = 127
max-complexity = 10
+[isort]
+line_length = 127
+lines_between_types = 1
+
@@ -1,7 +1,8 @@
import re
-from setuptools import setup, find_packages
import sys
+from setuptools import find_packages, setup
+
version = None
with open('web/lib/version.inc.php', 'r') as f:
for line in f.readlines():
Signed-off-by: Filipe Laíns <lains@archlinux.org> --- aurweb/git/auth.py | 2 +- aurweb/git/update.py | 2 +- aurweb/initdb.py | 7 ++++--- aurweb/schema.py | 2 +- aurweb/scripts/aurblup.py | 3 ++- aurweb/scripts/rendercomment.py | 3 ++- migrations/env.py | 9 +++++---- schema/gendummydata.py | 7 +++---- setup.cfg | 4 ++++ setup.py | 3 ++- 10 files changed, 25 insertions(+), 17 deletions(-)