Skip to content

Commit 71da1c0

Browse files
chore: [autoapprove] Update black and isort to latest versions (#912)
Source-Link: googleapis/synthtool@0c7b033 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:08e34975760f002746b1d8c86fdc90660be45945ee6d9db914d1508acdf9a547 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent da66f9d commit 71da1c0

File tree

8 files changed

+24
-29
lines changed

8 files changed

+24
-29
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
16-
digest: sha256:fac304457974bb530cc5396abd4ab25d26a469cd3bc97cbfb18c8d4324c584eb
17-
# created: 2023-10-02T21:31:03.517640371Z
16+
digest: sha256:08e34975760f002746b1d8c86fdc90660be45945ee6d9db914d1508acdf9a547
17+
# created: 2023-10-09T14:06:13.397766266Z

.kokoro/requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -467,9 +467,9 @@ typing-extensions==4.4.0 \
467467
--hash=sha256:1511434bb92bf8dd198c12b1cc812e800d4181cfcb867674e0f8279cc93087aa \
468468
--hash=sha256:16fa4864408f655d35ec496218b85f79b3437c829e93320c7c9215ccfd92489e
469469
# via -r requirements.in
470-
urllib3==1.26.12 \
471-
--hash=sha256:3fa96cf423e6987997fc326ae8df396db2a8b7c667747d47ddd8ecba91f4a74e \
472-
--hash=sha256:b930dd878d5a8afb066a637fbb35144fe7901e3b209d1cd4f524bd0e9deee997
470+
urllib3==1.26.17 \
471+
--hash=sha256:24d6a242c28d29af46c3fae832c36db3bbebcc533dd1bb549172cd739c82df21 \
472+
--hash=sha256:94a757d178c9be92ef5539b8840d48dc9cf1b2709c9d6b588232a055c524458b
473473
# via
474474
# requests
475475
# twine

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repos:
2222
- id: end-of-file-fixer
2323
- id: check-yaml
2424
- repo: https://github.com/psf/black
25-
rev: 22.3.0
25+
rev: 23.7.0
2626
hooks:
2727
- id: black
2828
- repo: https://github.com/pycqa/flake8

noxfile.py

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,37 +17,39 @@
1717
# Generated by synthtool. DO NOT EDIT!
1818

1919
from __future__ import absolute_import
20+
2021
import os
2122
import pathlib
2223
import re
2324
import re
2425
import shutil
26+
from typing import Dict, List
2527
import warnings
2628

2729
import nox
2830

2931
FLAKE8_VERSION = "flake8==6.1.0"
30-
BLACK_VERSION = "black==22.3.0"
31-
ISORT_VERSION = "isort==5.10.1"
32+
BLACK_VERSION = "black[jupyter]==23.7.0"
33+
ISORT_VERSION = "isort==5.11.0"
3234
LINT_PATHS = ["docs", "sqlalchemy_bigquery", "tests", "noxfile.py", "setup.py"]
3335

3436
DEFAULT_PYTHON_VERSION = "3.8"
3537

36-
UNIT_TEST_PYTHON_VERSIONS = ["3.8", "3.9", "3.10", "3.11"]
38+
UNIT_TEST_PYTHON_VERSIONS: List[str] = ["3.8", "3.9", "3.10", "3.11"]
3739
UNIT_TEST_STANDARD_DEPENDENCIES = [
3840
"mock",
3941
"asyncmock",
4042
"pytest",
4143
"pytest-cov",
4244
"pytest-asyncio",
4345
]
44-
UNIT_TEST_EXTERNAL_DEPENDENCIES = []
45-
UNIT_TEST_LOCAL_DEPENDENCIES = []
46-
UNIT_TEST_DEPENDENCIES = []
47-
UNIT_TEST_EXTRAS = [
46+
UNIT_TEST_EXTERNAL_DEPENDENCIES: List[str] = []
47+
UNIT_TEST_LOCAL_DEPENDENCIES: List[str] = []
48+
UNIT_TEST_DEPENDENCIES: List[str] = []
49+
UNIT_TEST_EXTRAS: List[str] = [
4850
"tests",
4951
]
50-
UNIT_TEST_EXTRAS_BY_PYTHON = {
52+
UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {
5153
"3.8": [
5254
"tests",
5355
"alembic",
@@ -60,19 +62,19 @@
6062
],
6163
}
6264

63-
SYSTEM_TEST_PYTHON_VERSIONS = ["3.8", "3.11"]
64-
SYSTEM_TEST_STANDARD_DEPENDENCIES = [
65+
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.8", "3.11"]
66+
SYSTEM_TEST_STANDARD_DEPENDENCIES: List[str] = [
6567
"mock",
6668
"pytest",
6769
"google-cloud-testutils",
6870
]
69-
SYSTEM_TEST_EXTERNAL_DEPENDENCIES = []
70-
SYSTEM_TEST_LOCAL_DEPENDENCIES = []
71-
SYSTEM_TEST_DEPENDENCIES = []
72-
SYSTEM_TEST_EXTRAS = [
71+
SYSTEM_TEST_EXTERNAL_DEPENDENCIES: List[str] = []
72+
SYSTEM_TEST_LOCAL_DEPENDENCIES: List[str] = []
73+
SYSTEM_TEST_DEPENDENCIES: List[str] = []
74+
SYSTEM_TEST_EXTRAS: List[str] = [
7375
"tests",
7476
]
75-
SYSTEM_TEST_EXTRAS_BY_PYTHON = {
77+
SYSTEM_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {
7678
"3.8": [
7779
"tests",
7880
"alembic",
@@ -96,6 +98,7 @@
9698
"lint_setup_py",
9799
"blacken",
98100
"docs",
101+
"format",
99102
]
100103

101104
# Error if a python version is missing
@@ -223,7 +226,6 @@ def unit(session):
223226

224227

225228
def install_systemtest_dependencies(session, *constraints):
226-
227229
# Use pre-release gRPC for system tests.
228230
# Exclude version 1.52.0rc1 which has a known issue.
229231
# See https://github.com/grpc/grpc/issues/32163

sqlalchemy_bigquery/base.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ def pre_exec(self):
183183

184184

185185
class BigQueryCompiler(_struct.SQLCompiler, SQLCompiler):
186-
187186
compound_keywords = SQLCompiler.compound_keywords.copy()
188187
compound_keywords[selectable.CompoundSelect.UNION] = "UNION DISTINCT"
189188
compound_keywords[selectable.CompoundSelect.UNION_ALL] = "UNION ALL"
@@ -624,7 +623,6 @@ def visit_NUMERIC(self, type_, **kw):
624623

625624

626625
class BigQueryDDLCompiler(DDLCompiler):
627-
628626
# BigQuery has no support for foreign keys.
629627
def visit_foreign_key_constraint(self, constraint):
630628
return None
@@ -723,7 +721,6 @@ def literal_processor(self, dialect):
723721

724722
class BQArray(sqlalchemy.sql.sqltypes.ARRAY):
725723
def literal_processor(self, dialect):
726-
727724
item_processor = self.item_type._cached_literal_processor(dialect)
728725
if not item_processor:
729726
raise NotImplementedError(

tests/sqlalchemy_dialect_compliance/test_dialect_compliance.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ def test_simple_offset(self):
5454
test_bound_offset = test_simple_offset
5555

5656
class TimestampMicrosecondsTest(_TimestampMicrosecondsTest):
57-
5857
data = datetime.datetime(2012, 10, 15, 12, 57, 18, 396, tzinfo=pytz.UTC)
5958

6059
def test_literal(self):

tests/unit/fauxdbi.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,6 @@ def __getattr__(self, name):
354354

355355
class FauxClient:
356356
def __init__(self, project_id=None, default_query_job_config=None, *args, **kw):
357-
358357
if project_id is None:
359358
if default_query_job_config is not None:
360359
project_id = default_query_job_config.default_dataset.project

tests/unit/test_like_reescape.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929

3030

3131
def _check(raw, escaped, escape=None, autoescape=True):
32-
3332
col = sqlalchemy.sql.schema.Column()
3433
op = col.contains(raw, escape=escape, autoescape=autoescape)
3534
o2 = sqlalchemy_bigquery.base.BigQueryCompiler._maybe_reescape(op)
@@ -40,7 +39,6 @@ def _check(raw, escaped, escape=None, autoescape=True):
4039

4140

4241
def test_like_autoescape_reescape():
43-
4442
_check("ab%cd", "ab\\%cd")
4543
_check("ab%c_d", "ab\\%c\\_d")
4644
_check("ab%cd", "ab%cd", autoescape=False)

0 commit comments

Comments
 (0)