silence warning "E306 expected 1 blank line before a nested definition"

上级 a81eec2b
......@@ -498,6 +498,7 @@ class BinaryTimestampCheck(Check):
def __init__(self):
self.future_files = dict()
self.past_files = dict()
def callback(self, member, data):
if member.mtime > future_cutoff:
self.future_files[member.name] = member.mtime
......
......@@ -2522,6 +2522,7 @@ class DBConn(object):
# Monkey patch a new dialect in in order to support service= syntax
import sqlalchemy.dialects.postgresql
from sqlalchemy.dialects.postgresql.psycopg2 import PGDialect_psycopg2
class PGDialect_psycopg2_dak(PGDialect_psycopg2):
def create_connect_args(self, url):
if str(url).startswith('postgresql://service='):
......
......@@ -17,7 +17,6 @@ ignore =
E261,
E265,
E266,
E306,
E402,
E722,
E731,
......
......@@ -109,6 +109,7 @@ class FilesystemTransactionTestCase(DakTestCase):
with TemporaryDirectory() as t:
self._write_to_a(t)
a = t.filename('a')
class TestException(Exception):
pass
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册