Skip to content

Commit 33ebcf2

Browse files
sycainidhiii-27
authored andcommitted
chore(bigframes): include import checks in nox lint (#17106)
Fixes b/512917646
1 parent 567e4f6 commit 33ebcf2

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

packages/bigframes/noxfile.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,20 @@ def lint(session):
142142
Returns a failure if the linters find linting errors or sufficiently
143143
serious code quality issues.
144144
"""
145-
session.install("flake8", RUFF_VERSION)
145+
session.install(RUFF_VERSION)
146+
147+
# Check imports
148+
session.run(
149+
"ruff",
150+
"check",
151+
"--select",
152+
"I",
153+
f"--target-version=py{ALL_PYTHON[0].replace('.', '')}",
154+
"--line-length=88", # Standard Black line length
155+
*LINT_PATHS,
156+
)
146157

147-
# 2. Check formatting
158+
# Check formatting
148159
session.run(
149160
"ruff",
150161
"format",

0 commit comments

Comments
 (0)