summaryrefslogtreecommitdiff
path: root/trove/db
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2018-06-13 15:45:36 -0400
committerMarcin Piwowarczyk <m.piwowarczy@samsung.com>2018-09-17 16:14:54 +0200
commit7e4e25f12feba32202e082d2f8b84a23cb9ae3af (patch)
treef4eec7533154b89b67dd9566e620d7da445728c7 /trove/db
parent6c6d43eb1a74cfb985308caae8d26d72b9581522 (diff)
downloadtrove-7e4e25f12feba32202e082d2f8b84a23cb9ae3af.tar.gz
update pylint to 1.9.2
The older version of pylint being used does not work correctly under python 3. In order to be able to update the pylint job to run under python 3, we need to update the tool. This patch updates to the latest version at this time. It also updates and pins astroid, which was previously capped. Using a pin instead of a cap should let us avoid issues with new releases while being specific about which version to actually use. Disable not-callable because that appears to be a new rule that is confused by the use of properties to access things that are set to callables. Co-Authored-By: Fan Zhang <zh.f@outlook.com> Co-Authored-By: Marcin Piwowarczyk <m.piwowarczy@samsung.com> Change-Id: I65705804b222dcd30a653fe10be3d823fa6143ff Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Diffstat (limited to 'trove/db')
-rw-r--r--trove/db/sqlalchemy/session.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/trove/db/sqlalchemy/session.py b/trove/db/sqlalchemy/session.py
index 2253f8a5..39a0f218 100644
--- a/trove/db/sqlalchemy/session.py
+++ b/trove/db/sqlalchemy/session.py
@@ -132,10 +132,10 @@ def clean_db():
meta.bind = engine
meta.reflect()
with contextlib.closing(engine.connect()) as con:
- trans = con.begin()
+ trans = con.begin() # pylint: disable=E1101
for table in reversed(meta.sorted_tables):
if table.name != "migrate_version":
- con.execute(table.delete())
+ con.execute(table.delete()) # pylint: disable=E1101
trans.commit()