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 /lib/sqlalchemy/dialects | |
| 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 'lib/sqlalchemy/dialects')
| -rw-r--r-- | lib/sqlalchemy/dialects/mssql/base.py | 8 | ||||
| -rw-r--r-- | lib/sqlalchemy/dialects/mysql/base.py | 2 | ||||
| -rw-r--r-- | lib/sqlalchemy/dialects/mysql/types.py | 2 | ||||
| -rw-r--r-- | lib/sqlalchemy/dialects/oracle/base.py | 10 | ||||
| -rw-r--r-- | lib/sqlalchemy/dialects/oracle/cx_oracle.py | 6 | ||||
| -rw-r--r-- | lib/sqlalchemy/dialects/postgresql/_psycopg_common.py | 2 | ||||
| -rw-r--r-- | lib/sqlalchemy/dialects/postgresql/base.py | 2 | ||||
| -rw-r--r-- | lib/sqlalchemy/dialects/postgresql/ext.py | 4 | ||||
| -rw-r--r-- | lib/sqlalchemy/dialects/postgresql/psycopg2.py | 4 | ||||
| -rw-r--r-- | lib/sqlalchemy/dialects/sqlite/base.py | 4 |
10 files changed, 22 insertions, 22 deletions
diff --git a/lib/sqlalchemy/dialects/mssql/base.py b/lib/sqlalchemy/dialects/mssql/base.py index 48288619e..e2ffbeb09 100644 --- a/lib/sqlalchemy/dialects/mssql/base.py +++ b/lib/sqlalchemy/dialects/mssql/base.py @@ -2047,7 +2047,7 @@ class MSSQLCompiler(compiler.SQLCompiler): expression.BinaryExpression( binary.right, binary.left, binary.operator ), - **kwargs + **kwargs, ) return super(MSSQLCompiler, self).visit_binary(binary, **kwargs) @@ -2540,7 +2540,7 @@ def _db_plus_owner_listing(fn): dbname, owner, schema, - **kw + **kw, ) return update_wrapper(wrap, fn) @@ -2559,7 +2559,7 @@ def _db_plus_owner(fn): dbname, owner, schema, - **kw + **kw, ) return update_wrapper(wrap, fn) @@ -2727,7 +2727,7 @@ class MSDialect(default.DefaultDialect): json_serializer=None, json_deserializer=None, legacy_schema_aliasing=None, - **opts + **opts, ): self.query_timeout = int(query_timeout or 0) self.schema_name = schema_name diff --git a/lib/sqlalchemy/dialects/mysql/base.py b/lib/sqlalchemy/dialects/mysql/base.py index f20b9b693..2913944f2 100644 --- a/lib/sqlalchemy/dialects/mysql/base.py +++ b/lib/sqlalchemy/dialects/mysql/base.py @@ -2390,7 +2390,7 @@ class MySQLDialect(default.DefaultDialect): json_serializer=None, json_deserializer=None, is_mariadb=None, - **kwargs + **kwargs, ): kwargs.pop("use_ansiquotes", None) # legacy default.DefaultDialect.__init__(self, **kwargs) diff --git a/lib/sqlalchemy/dialects/mysql/types.py b/lib/sqlalchemy/dialects/mysql/types.py index abbf943a9..07a67e2a4 100644 --- a/lib/sqlalchemy/dialects/mysql/types.py +++ b/lib/sqlalchemy/dialects/mysql/types.py @@ -74,7 +74,7 @@ class _StringType(sqltypes.String): binary=False, unicode=False, national=False, - **kw + **kw, ): self.charset = charset diff --git a/lib/sqlalchemy/dialects/oracle/base.py b/lib/sqlalchemy/dialects/oracle/base.py index 94feeefce..1488fc005 100644 --- a/lib/sqlalchemy/dialects/oracle/base.py +++ b/lib/sqlalchemy/dialects/oracle/base.py @@ -1497,7 +1497,7 @@ class OracleDialect(default.DefaultDialect): use_binds_for_limits=None, use_nchar_for_unicode=False, exclude_tablespaces=("SYSTEM", "SYSAUX"), - **kwargs + **kwargs, ): default.DefaultDialect.__init__(self, **kwargs) self._use_nchar_for_unicode = use_nchar_for_unicode @@ -1711,7 +1711,7 @@ class OracleDialect(default.DefaultDialect): schema=None, resolve_synonyms=False, dblink="", - **kw + **kw, ): if resolve_synonyms: @@ -2053,7 +2053,7 @@ class OracleDialect(default.DefaultDialect): schema=None, resolve_synonyms=False, dblink="", - **kw + **kw, ): info_cache = kw.get("info_cache") @@ -2090,7 +2090,7 @@ class OracleDialect(default.DefaultDialect): schema=None, resolve_synonyms=False, dblink="", - **kw + **kw, ): info_cache = kw.get("info_cache") @@ -2433,7 +2433,7 @@ class OracleDialect(default.DefaultDialect): schema=None, resolve_synonyms=False, dblink="", - **kw + **kw, ): info_cache = kw.get("info_cache") (view_name, schema, dblink, synonym) = self._prepare_reflection_args( diff --git a/lib/sqlalchemy/dialects/oracle/cx_oracle.py b/lib/sqlalchemy/dialects/oracle/cx_oracle.py index 9b097fb0e..153be5610 100644 --- a/lib/sqlalchemy/dialects/oracle/cx_oracle.py +++ b/lib/sqlalchemy/dialects/oracle/cx_oracle.py @@ -883,7 +883,7 @@ class OracleDialect_cx_oracle(OracleDialect): arraysize=50, encoding_errors=None, threaded=None, - **kwargs + **kwargs, ): OracleDialect.__init__(self, **kwargs) @@ -1123,7 +1123,7 @@ class OracleDialect_cx_oracle(OracleDialect): str, size, cursor.arraysize, - **dialect._cursor_var_unicode_kwargs + **dialect._cursor_var_unicode_kwargs, ) elif dialect.auto_convert_lobs and default_type in ( @@ -1134,7 +1134,7 @@ class OracleDialect_cx_oracle(OracleDialect): cx_Oracle.LONG_STRING, size, cursor.arraysize, - **dialect._cursor_var_unicode_kwargs + **dialect._cursor_var_unicode_kwargs, ) elif dialect.auto_convert_lobs and default_type in ( diff --git a/lib/sqlalchemy/dialects/postgresql/_psycopg_common.py b/lib/sqlalchemy/dialects/postgresql/_psycopg_common.py index 265d8617e..7f936fefb 100644 --- a/lib/sqlalchemy/dialects/postgresql/_psycopg_common.py +++ b/lib/sqlalchemy/dialects/postgresql/_psycopg_common.py @@ -114,7 +114,7 @@ class _PGDialect_common_psycopg(PGDialect): client_encoding=None, use_native_hstore=True, use_native_uuid=True, - **kwargs + **kwargs, ): PGDialect.__init__(self, **kwargs) if not use_native_hstore: diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index 869e48bd4..107288a73 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -3935,7 +3935,7 @@ class PGDialect(default.DefaultDialect): table_name, schema=None, postgresql_ignore_search_path=False, - **kw + **kw, ): preparer = self.identifier_preparer table_oid = self.get_table_oid( diff --git a/lib/sqlalchemy/dialects/postgresql/ext.py b/lib/sqlalchemy/dialects/postgresql/ext.py index e323da8be..1eabed403 100644 --- a/lib/sqlalchemy/dialects/postgresql/ext.py +++ b/lib/sqlalchemy/dialects/postgresql/ext.py @@ -221,7 +221,7 @@ class ExcludeConstraint(ColumnCollectionConstraint): *columns, name=kw.get("name"), deferrable=kw.get("deferrable"), - initially=kw.get("initially") + initially=kw.get("initially"), ) self.using = kw.get("using", "gist") where = kw.get("where") @@ -258,7 +258,7 @@ class ExcludeConstraint(ColumnCollectionConstraint): deferrable=self.deferrable, initially=self.initially, where=self.where, - using=self.using + using=self.using, ) c.dispatch._update(self.dispatch) return c diff --git a/lib/sqlalchemy/dialects/postgresql/psycopg2.py b/lib/sqlalchemy/dialects/postgresql/psycopg2.py index 0bbad3257..d670d1a50 100644 --- a/lib/sqlalchemy/dialects/postgresql/psycopg2.py +++ b/lib/sqlalchemy/dialects/postgresql/psycopg2.py @@ -558,7 +558,7 @@ class PGDialect_psycopg2(_PGDialect_common_psycopg): executemany_mode="values_only", executemany_batch_page_size=100, executemany_values_page_size=1000, - **kwargs + **kwargs, ): _PGDialect_common_psycopg.__init__(self, **kwargs) @@ -737,7 +737,7 @@ class PGDialect_psycopg2(_PGDialect_common_psycopg): parameters, template=executemany_values, fetch=bool(context.compiled.returning), - **kwargs + **kwargs, ) elif self.executemany_mode & EXECUTEMANY_BATCH: diff --git a/lib/sqlalchemy/dialects/sqlite/base.py b/lib/sqlalchemy/dialects/sqlite/base.py index 927c35135..cb607b58d 100644 --- a/lib/sqlalchemy/dialects/sqlite/base.py +++ b/lib/sqlalchemy/dialects/sqlite/base.py @@ -1864,7 +1864,7 @@ class SQLiteDialect(default.DefaultDialect): json_deserializer=None, _json_serializer=None, _json_deserializer=None, - **kwargs + **kwargs, ): default.DefaultDialect.__init__(self, **kwargs) @@ -2377,7 +2377,7 @@ class SQLiteDialect(default.DefaultDialect): table_name, schema=schema, include_auto_indexes=True, - **kw + **kw, ): if not idx["name"].startswith("sqlite_autoindex"): continue |
