1
1
mirror of https://github.com/yandex/pgmigrate.git synced 2024-09-19 08:07:22 +03:00

Fix flake8 checks

This commit is contained in:
secwall 2017-02-14 20:26:09 +03:00
parent c05d66574f
commit 21849625b2
2 changed files with 5 additions and 1 deletions

View File

@ -84,6 +84,7 @@ class BaselineError(MigrateError):
'''
pass
REF_COLUMNS = ['version', 'description', 'type',
'installed_by', 'installed_on']
@ -120,6 +121,7 @@ def _is_initialized(cursor):
return True
MIGRATION_FILE_RE = re.compile(
r'V(?P<version>\d+)__(?P<description>.+)\.sql$'
)
@ -576,6 +578,7 @@ def migrate(config):
_finish(config)
COMMANDS = {
'info': info,
'clean': clean,
@ -662,5 +665,6 @@ def _main():
COMMANDS[args.cmd](config)
if __name__ == '__main__':
_main()

View File

@ -43,5 +43,5 @@ deps = pylint
[flake8]
copyright-check = True
copyright-regexp = Copyright\s+(\(C\)\s+)?(\d{4}-)?2016\s+%(author)s
copyright-regexp = Copyright\s+(\(C\)\s+)?(\d{4}-)?2016-2017\s+%(author)s
copyright-author = Yandex LLC