Browse Source

flake8: Fix F401,F403

This commit fixes the following flake8 issues:

F401 'foo' imported but unused
F403 'from foo import *' used; unable to detect undefined names

Change-Id: I163224c65f54a2e495d6469c1c26a115ad192e23
changes/40/172740/3
Christoph Gysin 7 years ago committed by James E. Blair
parent
commit
f48df0ffdd
  1. 1
      gertty/alembic/versions/1cdd4e2e74c_add_revision_indexes.py
  2. 1
      gertty/alembic/versions/2a11dd14665_fix_account_table.py
  3. 1
      gertty/alembic/versions/56e48a4a064a_increase_status_field_width.py
  4. 4
      gertty/db.py
  5. 4
      gertty/search/parser.py
  6. 1
      gertty/view/change.py
  7. 1
      gertty/view/change_list.py
  8. 1
      gertty/view/project_list.py
  9. 9
      gertty/view/side_diff.py
  10. 8
      gertty/view/unified_diff.py
  11. 2
      tox.ini

1
gertty/alembic/versions/1cdd4e2e74c_add_revision_indexes.py

@ -11,7 +11,6 @@ revision = '1cdd4e2e74c'
down_revision = '4a802b741d2f'
from alembic import op
import sqlalchemy as sa
def upgrade():

1
gertty/alembic/versions/2a11dd14665_fix_account_table.py

@ -11,7 +11,6 @@ revision = '2a11dd14665'
down_revision = '4cc9c46f9d8b'
from alembic import op
import sqlalchemy as sa
def upgrade():

1
gertty/alembic/versions/56e48a4a064a_increase_status_field_width.py

@ -10,7 +10,6 @@ Create Date: 2014-05-05 11:49:42.133569
revision = '56e48a4a064a'
down_revision = '44402069e137'
from alembic import op
import sqlalchemy as sa
from gertty.dbsupport import sqlite_alter_columns

4
gertty/db.py

@ -20,9 +20,9 @@ import threading
import alembic
import alembic.config
import sqlalchemy
from sqlalchemy import create_engine, MetaData, Table, Column, Integer, String, Boolean, DateTime, Text, select, func
from sqlalchemy import create_engine, MetaData, Table, Column, Integer, String, Boolean, DateTime, Text
from sqlalchemy.schema import ForeignKey
from sqlalchemy.orm import mapper, sessionmaker, relationship, column_property, scoped_session
from sqlalchemy.orm import mapper, sessionmaker, relationship, scoped_session
from sqlalchemy.orm.session import Session
from sqlalchemy.sql import exists
from sqlalchemy.sql.expression import and_

4
gertty/search/parser.py

@ -16,12 +16,12 @@ import datetime
import re
import ply.yacc as yacc
from sqlalchemy.sql.expression import and_, or_, not_, exists, select
from sqlalchemy.sql.expression import and_, or_, not_, select
import gertty.db
import gertty.search
from tokenizer import tokens
from tokenizer import tokens # NOQA
def SearchParser():
precedence = ( # NOQA

1
gertty/view/change.py

@ -19,7 +19,6 @@ import urlparse
import urwid
from gertty import gitrepo
from gertty import keymap
from gertty import mywid
from gertty import sync

1
gertty/view/change_list.py

@ -18,7 +18,6 @@ import logging
import urwid
from gertty import keymap
from gertty import mywid
from gertty import sync
from gertty.view import change as view_change
from gertty.view import mouse_scroll_decorator

1
gertty/view/project_list.py

@ -17,7 +17,6 @@ import logging
import urwid
from gertty import keymap
from gertty import mywid
from gertty import sync
from gertty.view import change_list as view_change_list
from gertty.view import mouse_scroll_decorator

9
gertty/view/side_diff.py

@ -12,15 +12,12 @@
# License for the specific language governing permissions and limitations
# under the License.
import datetime
import logging
import urwid
from gertty import keymap
from gertty import mywid
from gertty import gitrepo
from gertty.view.diff import *
from gertty.view.diff import BaseDiffComment, BaseDiffCommentEdit, BaseDiffLine
from gertty.view.diff import BaseFileHeader, BaseFileReminder, BaseDiffView
from gertty.view.diff import LineContext
LN_COL_WIDTH = 5

8
gertty/view/unified_diff.py

@ -13,14 +13,12 @@
# License for the specific language governing permissions and limitations
# under the License.
import datetime
import logging
import urwid
from gertty import mywid
from gertty import gitrepo
from gertty.view.diff import *
from gertty.view.diff import BaseDiffCommentEdit, BaseDiffComment, BaseDiffLine
from gertty.view.diff import BaseFileHeader, BaseFileReminder, BaseDiffView
from gertty.view.diff import LineContext
LN_COL_WIDTH = 5

2
tox.ini

@ -31,6 +31,6 @@ deps = flake8
commands = {posargs}
[flake8]
ignore = W,E,F401,F403
ignore = W,E
show-source = True
exclude = .venv,.tox,dist,doc,build,*.egg

Loading…
Cancel
Save