aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.pylintrc2
-rw-r--r--fatcat/__init__.py2
-rw-r--r--fatcat/models.py6
3 files changed, 4 insertions, 6 deletions
diff --git a/.pylintrc b/.pylintrc
index d51233c1..b4dfd4f4 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -1,5 +1,5 @@
[MESSAGES CONTROL]
-disable=C0323,W0142,C0301,C0103,C0111,E0213,C0302,C0203,W0703,R0201,W0223,bad-continuation,arguments-differ,unidiomatic-typecheck,unused-wildcard-import
+disable=C0323,W0142,C0301,C0103,C0111,E0213,C0302,C0203,W0703,R0201,W0223,bad-continuation,arguments-differ,unidiomatic-typecheck,unused-wildcard-import,no-member,cyclic-import
[REPORTS]
output-format=colorized
diff --git a/fatcat/__init__.py b/fatcat/__init__.py
index cc5d2a65..e8c7c21a 100644
--- a/fatcat/__init__.py
+++ b/fatcat/__init__.py
@@ -1,7 +1,7 @@
from flask import Flask
-from config import Config
from flask_sqlalchemy import SQLAlchemy
+from config import Config
app = Flask(__name__)
app.config.from_object(Config)
diff --git a/fatcat/models.py b/fatcat/models.py
index 78d6b7f5..4106b054 100644
--- a/fatcat/models.py
+++ b/fatcat/models.py
@@ -1,7 +1,4 @@
-import enum
-from fatcat import db
-
"""
states for identifiers:
- pre-live: points to a rev (during edit/accept period)
@@ -11,6 +8,8 @@ states for identifiers:
- deleted: live, but doesn't point to a rev
"""
+from fatcat import db
+
# TODO: EntityMixin, EntityIdMixin
work_contrib = db.Table("work_contrib",
@@ -203,4 +202,3 @@ class ExtraJson(db.Model):
__tablename__ = 'extra_json'
sha1 = db.Column(db.String, primary_key=True)
json = db.Column(db.String)
-