Skip to content

Commit 29bf7a1

Browse files
committed
chore: reformats noxfile.py
1 parent fe2327b commit 29bf7a1

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

packages/google-cloud-spanner/noxfile.py

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,11 @@ def lint(session):
118118

119119
# 2. Check formatting
120120
session.run(
121-
"ruff", "format",
121+
"ruff",
122+
"format",
122123
"--check",
123124
f"--target-version=py{ALL_PYTHON[0].replace('.', '')}",
124-
"--line-length=88",
125+
"--line-length=88",
125126
*LINT_PATHS,
126127
)
127128

@@ -131,12 +132,15 @@ def lint(session):
131132
@nox.session(python=DEFAULT_PYTHON_VERSION)
132133
def blacken(session):
133134
"""(Deprecated) Legacy session. Please use 'nox -s format'."""
134-
session.log("WARNING: The 'blacken' session is deprecated and will be removed in a future release. Please use 'nox -s format' in the future.")
135-
135+
session.log(
136+
"WARNING: The 'blacken' session is deprecated and will be removed in a future release. Please use 'nox -s format' in the future."
137+
)
138+
136139
# Just run the ruff formatter (keeping legacy behavior of only formatting, not sorting imports)
137140
session.install(RUFF_VERSION)
138141
session.run(
139-
"ruff", "format",
142+
"ruff",
143+
"format",
140144
f"--target-version=py{ALL_PYTHON[0].replace('.', '')}",
141145
"--line-length=88",
142146
*LINT_PATHS,
@@ -155,8 +159,10 @@ def format(session):
155159
# check --select I: Enables strict import sorting
156160
# --fix: Applies the changes automatically
157161
session.run(
158-
"ruff", "check",
159-
"--select", "I",
162+
"ruff",
163+
"check",
164+
"--select",
165+
"I",
160166
"--fix",
161167
f"--target-version=py{ALL_PYTHON[0].replace('.', '')}",
162168
"--line-length=88", # Standard Black line length
@@ -165,14 +171,14 @@ def format(session):
165171

166172
# 3. Run Ruff to format code
167173
session.run(
168-
"ruff", "format",
174+
"ruff",
175+
"format",
169176
f"--target-version=py{ALL_PYTHON[0].replace('.', '')}",
170177
"--line-length=88", # Standard Black line length
171178
*LINT_PATHS,
172179
)
173180

174181

175-
176182
@nox.session(python=DEFAULT_PYTHON_VERSION)
177183
def lint_setup_py(session):
178184
"""Verify that setup.py is valid (including RST check)."""

0 commit comments

Comments
 (0)