Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit ae25b03

Browse files
committed
use RUFF_VERSION and update goldens
1 parent 2959030 commit ae25b03

File tree

9 files changed

+25
-25
lines changed

9 files changed

+25
-25
lines changed

gapic/templates/noxfile.py.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def lint(session):
146146
Returns a failure if the linters find linting errors or sufficiently
147147
serious code quality issues.
148148
"""
149-
session.install("flake8", "ruff")
149+
session.install("flake8", RUFF_VERSION)
150150
151151
# 2. Check formatting
152152
session.run("ruff", "format", "--check", "--line-length=88", *LINT_PATHS)
@@ -165,7 +165,7 @@ def blacken(session):
165165
session.log("WARNING: The 'blacken' session is deprecated and will be removed in the next release. Please use 'nox -s format' in the future.")
166166

167167
# Just run the ruff formatter (keeping legacy behavior of only formatting, not sorting imports)
168-
session.install("ruff")
168+
session.install(RUFF_VERSION)
169169
session.run("ruff", "format", "--line-length=88", *LINT_PATHS)
170170

171171

@@ -175,7 +175,7 @@ def format(session):
175175
Run ruff to sort imports and format code.
176176
"""
177177
# 1. Install ruff (skipped automatically if you run with --no-venv)
178-
session.install("ruff")
178+
session.install(RUFF_VERSION)
179179

180180
# 2. Run Ruff to fix imports
181181
# check --select I: Enables strict import sorting

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ def format(session):
804804
Run ruff to sort imports and format code.
805805
"""
806806
# 1. Install ruff (skipped automatically if you run with --no-venv)
807-
session.install("ruff")
807+
session.install(RUFF_VERSION)
808808

809809
# 2. Run Ruff to fix imports
810810
# check --select I: Enables strict import sorting

tests/integration/goldens/asset/noxfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def lint(session):
149149
Returns a failure if the linters find linting errors or sufficiently
150150
serious code quality issues.
151151
"""
152-
session.install("flake8", "ruff")
152+
session.install("flake8", RUFF_VERSION)
153153

154154
# 2. Check formatting
155155
session.run("ruff", "format", "--check", "--line-length=88", *LINT_PATHS)
@@ -163,7 +163,7 @@ def blacken(session):
163163
session.log("WARNING: The 'blacken' session is deprecated and will be removed in the next release. Please use 'nox -s format' in the future.")
164164

165165
# Just run the ruff formatter (keeping legacy behavior of only formatting, not sorting imports)
166-
session.install("ruff")
166+
session.install(RUFF_VERSION)
167167
session.run("ruff", "format", "--line-length=88", *LINT_PATHS)
168168

169169

@@ -173,7 +173,7 @@ def format(session):
173173
Run ruff to sort imports and format code.
174174
"""
175175
# 1. Install ruff (skipped automatically if you run with --no-venv)
176-
session.install("ruff")
176+
session.install(RUFF_VERSION)
177177

178178
# 2. Run Ruff to fix imports
179179
# check --select I: Enables strict import sorting

tests/integration/goldens/credentials/noxfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def lint(session):
149149
Returns a failure if the linters find linting errors or sufficiently
150150
serious code quality issues.
151151
"""
152-
session.install("flake8", "ruff")
152+
session.install("flake8", RUFF_VERSION)
153153

154154
# 2. Check formatting
155155
session.run("ruff", "format", "--check", "--line-length=88", *LINT_PATHS)
@@ -163,7 +163,7 @@ def blacken(session):
163163
session.log("WARNING: The 'blacken' session is deprecated and will be removed in the next release. Please use 'nox -s format' in the future.")
164164

165165
# Just run the ruff formatter (keeping legacy behavior of only formatting, not sorting imports)
166-
session.install("ruff")
166+
session.install(RUFF_VERSION)
167167
session.run("ruff", "format", "--line-length=88", *LINT_PATHS)
168168

169169

@@ -173,7 +173,7 @@ def format(session):
173173
Run ruff to sort imports and format code.
174174
"""
175175
# 1. Install ruff (skipped automatically if you run with --no-venv)
176-
session.install("ruff")
176+
session.install(RUFF_VERSION)
177177

178178
# 2. Run Ruff to fix imports
179179
# check --select I: Enables strict import sorting

tests/integration/goldens/eventarc/noxfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def lint(session):
149149
Returns a failure if the linters find linting errors or sufficiently
150150
serious code quality issues.
151151
"""
152-
session.install("flake8", "ruff")
152+
session.install("flake8", RUFF_VERSION)
153153

154154
# 2. Check formatting
155155
session.run("ruff", "format", "--check", "--line-length=88", *LINT_PATHS)
@@ -163,7 +163,7 @@ def blacken(session):
163163
session.log("WARNING: The 'blacken' session is deprecated and will be removed in the next release. Please use 'nox -s format' in the future.")
164164

165165
# Just run the ruff formatter (keeping legacy behavior of only formatting, not sorting imports)
166-
session.install("ruff")
166+
session.install(RUFF_VERSION)
167167
session.run("ruff", "format", "--line-length=88", *LINT_PATHS)
168168

169169

@@ -173,7 +173,7 @@ def format(session):
173173
Run ruff to sort imports and format code.
174174
"""
175175
# 1. Install ruff (skipped automatically if you run with --no-venv)
176-
session.install("ruff")
176+
session.install(RUFF_VERSION)
177177

178178
# 2. Run Ruff to fix imports
179179
# check --select I: Enables strict import sorting

tests/integration/goldens/logging/noxfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def lint(session):
149149
Returns a failure if the linters find linting errors or sufficiently
150150
serious code quality issues.
151151
"""
152-
session.install("flake8", "ruff")
152+
session.install("flake8", RUFF_VERSION)
153153

154154
# 2. Check formatting
155155
session.run("ruff", "format", "--check", "--line-length=88", *LINT_PATHS)
@@ -163,7 +163,7 @@ def blacken(session):
163163
session.log("WARNING: The 'blacken' session is deprecated and will be removed in the next release. Please use 'nox -s format' in the future.")
164164

165165
# Just run the ruff formatter (keeping legacy behavior of only formatting, not sorting imports)
166-
session.install("ruff")
166+
session.install(RUFF_VERSION)
167167
session.run("ruff", "format", "--line-length=88", *LINT_PATHS)
168168

169169

@@ -173,7 +173,7 @@ def format(session):
173173
Run ruff to sort imports and format code.
174174
"""
175175
# 1. Install ruff (skipped automatically if you run with --no-venv)
176-
session.install("ruff")
176+
session.install(RUFF_VERSION)
177177

178178
# 2. Run Ruff to fix imports
179179
# check --select I: Enables strict import sorting

tests/integration/goldens/logging_internal/noxfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def lint(session):
149149
Returns a failure if the linters find linting errors or sufficiently
150150
serious code quality issues.
151151
"""
152-
session.install("flake8", "ruff")
152+
session.install("flake8", RUFF_VERSION)
153153

154154
# 2. Check formatting
155155
session.run("ruff", "format", "--check", "--line-length=88", *LINT_PATHS)
@@ -163,7 +163,7 @@ def blacken(session):
163163
session.log("WARNING: The 'blacken' session is deprecated and will be removed in the next release. Please use 'nox -s format' in the future.")
164164

165165
# Just run the ruff formatter (keeping legacy behavior of only formatting, not sorting imports)
166-
session.install("ruff")
166+
session.install(RUFF_VERSION)
167167
session.run("ruff", "format", "--line-length=88", *LINT_PATHS)
168168

169169

@@ -173,7 +173,7 @@ def format(session):
173173
Run ruff to sort imports and format code.
174174
"""
175175
# 1. Install ruff (skipped automatically if you run with --no-venv)
176-
session.install("ruff")
176+
session.install(RUFF_VERSION)
177177

178178
# 2. Run Ruff to fix imports
179179
# check --select I: Enables strict import sorting

tests/integration/goldens/redis/noxfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def lint(session):
149149
Returns a failure if the linters find linting errors or sufficiently
150150
serious code quality issues.
151151
"""
152-
session.install("flake8", "ruff")
152+
session.install("flake8", RUFF_VERSION)
153153

154154
# 2. Check formatting
155155
session.run("ruff", "format", "--check", "--line-length=88", *LINT_PATHS)
@@ -163,7 +163,7 @@ def blacken(session):
163163
session.log("WARNING: The 'blacken' session is deprecated and will be removed in the next release. Please use 'nox -s format' in the future.")
164164

165165
# Just run the ruff formatter (keeping legacy behavior of only formatting, not sorting imports)
166-
session.install("ruff")
166+
session.install(RUFF_VERSION)
167167
session.run("ruff", "format", "--line-length=88", *LINT_PATHS)
168168

169169

@@ -173,7 +173,7 @@ def format(session):
173173
Run ruff to sort imports and format code.
174174
"""
175175
# 1. Install ruff (skipped automatically if you run with --no-venv)
176-
session.install("ruff")
176+
session.install(RUFF_VERSION)
177177

178178
# 2. Run Ruff to fix imports
179179
# check --select I: Enables strict import sorting

tests/integration/goldens/redis_selective/noxfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def lint(session):
149149
Returns a failure if the linters find linting errors or sufficiently
150150
serious code quality issues.
151151
"""
152-
session.install("flake8", "ruff")
152+
session.install("flake8", RUFF_VERSION)
153153

154154
# 2. Check formatting
155155
session.run("ruff", "format", "--check", "--line-length=88", *LINT_PATHS)
@@ -163,7 +163,7 @@ def blacken(session):
163163
session.log("WARNING: The 'blacken' session is deprecated and will be removed in the next release. Please use 'nox -s format' in the future.")
164164

165165
# Just run the ruff formatter (keeping legacy behavior of only formatting, not sorting imports)
166-
session.install("ruff")
166+
session.install(RUFF_VERSION)
167167
session.run("ruff", "format", "--line-length=88", *LINT_PATHS)
168168

169169

@@ -173,7 +173,7 @@ def format(session):
173173
Run ruff to sort imports and format code.
174174
"""
175175
# 1. Install ruff (skipped automatically if you run with --no-venv)
176-
session.install("ruff")
176+
session.install(RUFF_VERSION)
177177

178178
# 2. Run Ruff to fix imports
179179
# check --select I: Enables strict import sorting

0 commit comments

Comments
 (0)