Remove all "WPS" codes
This commit is contained in:
parent
8a5a652b3e
commit
9fcb3c8c14
1 changed files with 171 additions and 254 deletions
|
|
@ -21,9 +21,9 @@ log_config.fileConfig(context.config.config_file_name)
|
|||
|
||||
def include_object(obj, _name, type_, _reflected, _compare_to):
|
||||
"""Only include the clean schema into --autogenerate migrations."""
|
||||
if ( # noqa:WPS337
|
||||
if (
|
||||
type_ in {'table', 'column'}
|
||||
and hasattr(obj, 'schema') # noqa:WPS421 => fix for rare edge case
|
||||
and hasattr(obj, 'schema') # => fix for rare edge case
|
||||
and obj.schema != velofy_config.CLEAN_SCHEMA
|
||||
):
|
||||
return False
|
||||
|
|
|
|||
Loading…
Reference in a new issue