]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
refactor code generation tools , include --check command
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 18 Jan 2023 17:45:42 +0000 (12:45 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 18 Jan 2023 20:07:55 +0000 (15:07 -0500)
commitcd96ffe287e26651f8dce4f688bf87af1e423f06
tree123197d983714caa9ae225d330fcf3743ba11b52
parentf91a25cd8191f026dd43c0a2475cda8a56d65c19
refactor code generation tools , include --check command

in particular it looks like CI was not picking up on the
"git diff" oriented commands, which were failing to run due
to pathing issues.  As we were setting cwd for black/zimports
relative to sqlalchemy library, and tox installs it in
the venv, black/zimports would fail to run from tox, and
since these are subprocess.run we didn't pick up the
failure.

This overall locks down how zimports/black are run
so that we are definitely from the source root, by using
the location of tools/ to determine the root.

Fixes: #8892
Change-Id: I7c54b747edd5a80e0c699b8456febf66d8b62375
lib/sqlalchemy/orm/scoping.py
lib/sqlalchemy/util/langhelpers.py
lib/sqlalchemy/util/tool_support.py [new file with mode: 0644]
test/orm/test_scoping.py
tools/format_docs_code.py
tools/generate_proxy_methods.py
tools/generate_tuple_map_overloads.py
tools/sync_test_files.py
tools/trace_orm_adapter.py
tox.ini