Skip to content

Commit

Permalink
imports
Browse files Browse the repository at this point in the history
  • Loading branch information
pefoley2 committed Jan 17, 2016
1 parent 542c531 commit 35e5145
Show file tree
Hide file tree
Showing 23 changed files with 34 additions and 6 deletions.
2 changes: 2 additions & 0 deletions cslbot/alembic/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

import configparser
import logging
from os.path import dirname, exists, join
from sys import path

from alembic import context

from sqlalchemy import create_engine

# Make this work from git.
Expand Down
1 change: 1 addition & 0 deletions cslbot/alembic/script.py.mako
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Create Date: ${create_date}
"""

from alembic import op

import sqlalchemy as sa
${imports if imports else ""}

Expand Down
3 changes: 2 additions & 1 deletion cslbot/alembic/versions/3614b38ddf9_kick_logging_change.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
"""

import sqlalchemy as sa
from alembic import op

import sqlalchemy as sa

# revision identifiers, used by Alembic.
revision = '3614b38ddf9'
down_revision = 'ef7ccebeff'
Expand Down
3 changes: 2 additions & 1 deletion cslbot/alembic/versions/385c29e42d9_remove_nicks.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
"""

import sqlalchemy as sa
from alembic import op

import sqlalchemy as sa

# revision identifiers, used by Alembic.
revision = '385c29e42d9'
down_revision = '3614b38ddf9'
Expand Down
1 change: 1 addition & 0 deletions cslbot/alembic/versions/4d165186b4ed_fix_nullable.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"""

from alembic import op

import sqlalchemy as sa


Expand Down
3 changes: 2 additions & 1 deletion cslbot/alembic/versions/7fde00129eb6_multi_babble.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
"""

import sqlalchemy as sa
from alembic import op

import sqlalchemy as sa

# revision identifiers, used by Alembic.
revision = '7fde00129eb6'
down_revision = '55efdbb748c'
Expand Down
1 change: 1 addition & 0 deletions cslbot/commands/cve.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import re

from lxml.html import fromstring

from requests import get

from ..helpers.command import Command
Expand Down
1 change: 1 addition & 0 deletions cslbot/commands/define.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import re

from lxml import etree

from requests import get

from ..helpers import arguments, textutils
Expand Down
1 change: 1 addition & 0 deletions cslbot/commands/fml.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

from lxml.etree import fromstring

from requests import get

from ..helpers.command import Command
Expand Down
1 change: 1 addition & 0 deletions cslbot/commands/fweather.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

from lxml.html import fromstring

from requests import get

from ..helpers.command import Command
Expand Down
1 change: 1 addition & 0 deletions cslbot/commands/imdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

from lxml.html import fromstring

from requests import get

from ..helpers.command import Command
Expand Down
1 change: 1 addition & 0 deletions cslbot/commands/man.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

from lxml.html import fromstring

from requests import get

from ..helpers import arguments
Expand Down
1 change: 1 addition & 0 deletions cslbot/commands/tjbash.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from random import choice

from lxml.html import fromstring

from requests import get

from ..helpers.command import Command
Expand Down
2 changes: 2 additions & 0 deletions cslbot/commands/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
from os.path import join

import geoip2

from pkg_resources import Requirement, resource_filename

from requests import get

from ..helpers import arguments
Expand Down
1 change: 1 addition & 0 deletions cslbot/commands/wikipath.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from datetime import datetime

from lxml.html import fromstring

from requests import get

from ..helpers import arguments
Expand Down
1 change: 1 addition & 0 deletions cslbot/commands/wolf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

from lxml.etree import fromstring

from requests import get

from ..helpers.command import Command
Expand Down
1 change: 1 addition & 0 deletions cslbot/helpers/arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import re

import dateutil.parser

from requests import get


Expand Down
2 changes: 2 additions & 0 deletions cslbot/helpers/orm.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
# USA.

from alembic import command, config

from pkg_resources import Requirement, resource_filename

from sqlalchemy import Column, DateTime, ForeignKey, Integer, Unicode, UnicodeText
from sqlalchemy.ext.declarative import as_declarative, declared_attr

Expand Down
2 changes: 2 additions & 0 deletions cslbot/helpers/textutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
from random import choice, randint, random, randrange

from lxml import etree, html

from pkg_resources import Requirement, resource_string

from requests import get, post

from .tokens import token_cache
Expand Down
1 change: 1 addition & 0 deletions cslbot/helpers/urlutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from urllib.request import Request, urlopen

from lxml.html import parse

from requests import post
from requests.exceptions import ConnectTimeout

Expand Down
2 changes: 2 additions & 0 deletions cslbot/helpers/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@

from requests import get, post
from requests.exceptions import ReadTimeout

from requests_oauthlib import OAuth1Session

from simplejson import JSONDecodeError

from . import urlutils
Expand Down
5 changes: 3 additions & 2 deletions cslbot/helpers/workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

import concurrent.futures

import multiprocessing
import re
import signal
import threading
from datetime import datetime, timedelta
from collections import namedtuple
from datetime import datetime, timedelta

import concurrent.futures

from sqlalchemy import or_

Expand Down
3 changes: 2 additions & 1 deletion scripts/parsedata.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@
import shutil
import sys
from datetime import datetime, timedelta
from time import strftime
from os import makedirs, path
from time import strftime

from jinja2 import Environment, FileSystemLoader

from pkg_resources import Requirement, resource_filename

# Make this work from git.
Expand Down

0 comments on commit 35e5145

Please sign in to comment.