Skip to content

Commit cc96496

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 69e8ff8 commit cc96496

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

src/sqlacodegen/cli.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,21 @@ def main() -> None:
117117
engine_args = _parse_engine_args(args.engine_arg)
118118
engine = create_engine(args.url, **engine_args)
119119
metadata = MetaData()
120-
tables = [tablename.strip() for tablename in args.tables.split(",")] if args.tables else None
121-
schemas = [schema.strip() for schema in args.schemas.split(",")] if args.schemas else [None]
122-
options = set([option.strip() for option in args.options.split(",")]) if args.options else set()
120+
tables = (
121+
[tablename.strip() for tablename in args.tables.split(",")]
122+
if args.tables
123+
else None
124+
)
125+
schemas = (
126+
[schema.strip() for schema in args.schemas.split(",")]
127+
if args.schemas
128+
else [None]
129+
)
130+
options = (
131+
set([option.strip() for option in args.options.split(",")])
132+
if args.options
133+
else set()
134+
)
123135

124136
# Instantiate the generator
125137
generator_class = generators[args.generator].load()

0 commit comments

Comments
 (0)