diff options
| author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2022-01-05 12:41:32 -0500 |
|---|---|---|
| committer | sqla-tester <sqla-tester@sqlalchemy.org> | 2022-01-05 12:41:32 -0500 |
| commit | 146a349d81023805264f81643db50a5281da90da (patch) | |
| tree | 8c0b6e56e3f29b8187de1b8a9af21af4cebbd6a2 /test/aaa_profiling | |
| parent | 028f9b5cacc1b70aa0f4f53799f6e7c14a182776 (diff) | |
| download | sqlalchemy-146a349d81023805264f81643db50a5281da90da.tar.gz | |
Update Black's target-version to py37
<!-- Provide a general summary of your proposed changes in the Title field above -->
### Description
<!-- Describe your changes in detail -->
Black's `target-version` was still set to `['py27', 'py36']`. Set it to `[py37]` instead.
Also update Black and other pre-commit hooks and re-format with Black.
### Checklist
<!-- go over following points. check them with an `x` if they do apply, (they turn into clickable checkboxes once the PR is submitted, so no need to do everything at once)
-->
This pull request is:
- [ ] A documentation / typographical error fix
- Good to go, no issue or tests are needed
- [ ] A short code fix
- please include the issue number, and create an issue if none exists, which
must include a complete example of the issue. one line code fixes without an
issue and demonstration will not be accepted.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests. one line code fixes without tests will not be accepted.
- [ ] A new feature implementation
- please include the issue number, and create an issue if none exists, which must
include a complete example of how the feature would look.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.
**Have a nice day!**
Closes: #7536
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/7536
Pull-request-sha: b3aedf5570d7e0ba6c354e5989835260d0591b08
Change-Id: I8be85636fd2c9449b07a8626050c8bd35bd119d5
Diffstat (limited to 'test/aaa_profiling')
| -rw-r--r-- | test/aaa_profiling/test_memusage.py | 2 | ||||
| -rw-r--r-- | test/aaa_profiling/test_orm.py | 30 | ||||
| -rw-r--r-- | test/aaa_profiling/test_resultset.py | 4 |
3 files changed, 18 insertions, 18 deletions
diff --git a/test/aaa_profiling/test_memusage.py b/test/aaa_profiling/test_memusage.py index 42f882366..316e7d7d4 100644 --- a/test/aaa_profiling/test_memusage.py +++ b/test/aaa_profiling/test_memusage.py @@ -553,7 +553,7 @@ class MemUsageWBackendTest(fixtures.MappedTest, EnsureZeroed): Column( "id", Integer, primary_key=True, test_needs_autoincrement=True ), - *[Column("col%d" % i, Integer) for i in range(10)] + *[Column("col%d" % i, Integer) for i in range(10)], ) class Wide: diff --git a/test/aaa_profiling/test_orm.py b/test/aaa_profiling/test_orm.py index 113286d1b..128a78714 100644 --- a/test/aaa_profiling/test_orm.py +++ b/test/aaa_profiling/test_orm.py @@ -375,7 +375,7 @@ class DeferOptionsTest(NoCache, fixtures.MappedTest): **dict( (letter, "%s%d" % (letter, i)) for letter in ["x", "y", "z", "p", "q", "r"] - ) + ), ) for i in range(1, 1001) ] @@ -722,7 +722,7 @@ class JoinedEagerLoadTest(NoCache, fixtures.MappedTest): Column( "id", Integer, primary_key=True, test_needs_autoincrement=True ), - *make_some_columns() + *make_some_columns(), ) Table( "b", @@ -731,7 +731,7 @@ class JoinedEagerLoadTest(NoCache, fixtures.MappedTest): "id", Integer, primary_key=True, test_needs_autoincrement=True ), Column("a_id", ForeignKey("a.id")), - *make_some_columns() + *make_some_columns(), ) Table( "c", @@ -740,7 +740,7 @@ class JoinedEagerLoadTest(NoCache, fixtures.MappedTest): "id", Integer, primary_key=True, test_needs_autoincrement=True ), Column("b_id", ForeignKey("b.id")), - *make_some_columns() + *make_some_columns(), ) Table( "d", @@ -749,7 +749,7 @@ class JoinedEagerLoadTest(NoCache, fixtures.MappedTest): "id", Integer, primary_key=True, test_needs_autoincrement=True ), Column("c_id", ForeignKey("c.id")), - *make_some_columns() + *make_some_columns(), ) Table( "e", @@ -758,7 +758,7 @@ class JoinedEagerLoadTest(NoCache, fixtures.MappedTest): "id", Integer, primary_key=True, test_needs_autoincrement=True ), Column("a_id", ForeignKey("a.id")), - *make_some_columns() + *make_some_columns(), ) Table( "f", @@ -767,7 +767,7 @@ class JoinedEagerLoadTest(NoCache, fixtures.MappedTest): "id", Integer, primary_key=True, test_needs_autoincrement=True ), Column("e_id", ForeignKey("e.id")), - *make_some_columns() + *make_some_columns(), ) Table( "g", @@ -776,7 +776,7 @@ class JoinedEagerLoadTest(NoCache, fixtures.MappedTest): "id", Integer, primary_key=True, test_needs_autoincrement=True ), Column("e_id", ForeignKey("e.id")), - *make_some_columns() + *make_some_columns(), ) @classmethod @@ -1024,7 +1024,7 @@ class BranchedOptionTest(NoCache, fixtures.MappedTest): Column( "id", Integer, primary_key=True, test_needs_autoincrement=True ), - *make_some_columns() + *make_some_columns(), ) Table( "b", @@ -1033,7 +1033,7 @@ class BranchedOptionTest(NoCache, fixtures.MappedTest): "id", Integer, primary_key=True, test_needs_autoincrement=True ), Column("a_id", ForeignKey("a.id")), - *make_some_columns() + *make_some_columns(), ) Table( "c", @@ -1042,7 +1042,7 @@ class BranchedOptionTest(NoCache, fixtures.MappedTest): "id", Integer, primary_key=True, test_needs_autoincrement=True ), Column("b_id", ForeignKey("b.id")), - *make_some_columns() + *make_some_columns(), ) Table( "d", @@ -1051,7 +1051,7 @@ class BranchedOptionTest(NoCache, fixtures.MappedTest): "id", Integer, primary_key=True, test_needs_autoincrement=True ), Column("b_id", ForeignKey("b.id")), - *make_some_columns() + *make_some_columns(), ) Table( "e", @@ -1060,7 +1060,7 @@ class BranchedOptionTest(NoCache, fixtures.MappedTest): "id", Integer, primary_key=True, test_needs_autoincrement=True ), Column("b_id", ForeignKey("b.id")), - *make_some_columns() + *make_some_columns(), ) Table( "f", @@ -1069,7 +1069,7 @@ class BranchedOptionTest(NoCache, fixtures.MappedTest): "id", Integer, primary_key=True, test_needs_autoincrement=True ), Column("b_id", ForeignKey("b.id")), - *make_some_columns() + *make_some_columns(), ) Table( "g", @@ -1078,7 +1078,7 @@ class BranchedOptionTest(NoCache, fixtures.MappedTest): "id", Integer, primary_key=True, test_needs_autoincrement=True ), Column("a_id", ForeignKey("a.id")), - *make_some_columns() + *make_some_columns(), ) @classmethod diff --git a/test/aaa_profiling/test_resultset.py b/test/aaa_profiling/test_resultset.py index 12921a7dc..479a2472f 100644 --- a/test/aaa_profiling/test_resultset.py +++ b/test/aaa_profiling/test_resultset.py @@ -29,7 +29,7 @@ class ResultSetTest(fixtures.TablesTest, AssertsExecutionResults): *[ Column("field%d" % fnum, String(50)) for fnum in range(NUM_FIELDS) - ] + ], ) Table( "table2", @@ -37,7 +37,7 @@ class ResultSetTest(fixtures.TablesTest, AssertsExecutionResults): *[ Column("field%d" % fnum, Unicode(50)) for fnum in range(NUM_FIELDS) - ] + ], ) @classmethod |
