Skip to content

Commit 86b568e

Browse files
integrate isort into lint nox session
1 parent 825f002 commit 86b568e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/sync-repo-settings.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ branchProtectionRules:
1212
- 'cla/google'
1313
- 'docs'
1414
- 'lint'
15-
- 'format'
1615
- 'mypy'
1716
- 'unit (3.9)'
1817
- 'unit (3.10)'

noxfile.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,12 @@ def lint(session):
139139
Returns a failure if the linters find linting errors or sufficiently
140140
serious code quality issues.
141141
"""
142-
session.install("flake8", BLACK_VERSION)
142+
session.install("flake8", BLACK_VERSION, ISORT_VERSION)
143+
session.run(
144+
"isort",
145+
"--check",
146+
*LINT_PATHS,
147+
)
143148
session.run(
144149
"black",
145150
"--check",

0 commit comments

Comments
 (0)