Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 293546d

Browse files
chore(python): use click<8.1.0 for lint/blacken sessions (#761)
* chore(python): use black==22.3.0 Source-Link: googleapis/synthtool@6fab84a Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:7cffbc10910c3ab1b852c05114a08d374c195a81cdec1d4a67a1d129331d0bfe * ci: use click<8.1.0 for lint/blacken session Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <[email protected]>
1 parent 47bb517 commit 293546d

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed
Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# Copyright 2022 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
114
docker:
215
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
3-
digest: sha256:ae600f36b6bc972b368367b6f83a1d91ec2c82a4a116b383d67d547c56fe6de3
16+
digest: sha256:7cffbc10910c3ab1b852c05114a08d374c195a81cdec1d4a67a1d129331d0bfe

packages/google-cloud-ndb/noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,15 @@ def lint(session):
106106
Returns a failure if the linters find linting errors or sufficiently
107107
serious code quality issues.
108108
"""
109-
session.install("flake8", BLACK_VERSION)
109+
session.install("flake8", BLACK_VERSION, "click<8.1.0")
110110
run_black(session, use_check=True)
111111
session.run("flake8", "google", "tests")
112112

113113

114114
@nox.session(py=DEFAULT_INTERPRETER)
115115
def blacken(session):
116116
# Install all dependencies.
117-
session.install(BLACK_VERSION)
117+
session.install(BLACK_VERSION, "click<8.1.0")
118118
# Run ``black``.
119119
run_black(session)
120120

0 commit comments

Comments
 (0)