Repository navigation
Migrate to PEP 621 and format codebase with ruff - #367
josecsotomorales merged 4 commits into
Conversation
|
Thanks for all this, I'd read through it all earlier this week, so sorry for not updating your PR. I've updated I think dropping 3.8 support means we need to do a version bump, should we go for 1.5, or sync to 2.0 with sqla? |
|
Thank you, @marksteward! The changes I've added to |
|
@marksteward I'm going to work on cleaning up some warnings, fix the docs, and will take a look at this PR to remove the direct dependency of sqlalchemy-utils, then we can release 2.0. What do you think about this for next steps? |
|
I just ran ruff locally and it's pulled out a change that isn't mechanical: @@ -321,8 +324,11 @@ class VersioningManager(object):
uow = self.units_of_work[conn.engine]
except KeyError:
for connection in self.units_of_work.keys():
- if not connection.closed and connection.connection is conn.connection:
- uow = self.unit_of_work(session)
+ if (
+ not connection.closed
+ and connection.connection is conn.connection
+ ):
+ uow = self.units_of_work[connection]
break # The ConnectionFairy is the same, this connection is a cloneI think that's a bug from when I pulled out |
|
OK, fixed in 4d46c2d - this is why it's useful to double-check that running tools multiple times gives the same result! |
No description provided.