Skip to content

Commit 0ddbff8

Browse files
authored
chore: [autoapprove] Pin flake8 version (#1842)
* Update noxfile.py.j2 Pinned flake8 to the latest version (as of Aug2023) to avoid unexpected lint error after version update. * Update .pre-commit-config.yaml
1 parent c08afee commit 0ddbff8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

synthtool/gcp/templates/python_library/.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ repos:
2626
hooks:
2727
- id: black
2828
- repo: https://github.com/pycqa/flake8
29-
rev: 3.9.2
29+
rev: 6.1.0
3030
hooks:
3131
- id: flake8

synthtool/gcp/templates/python_library/noxfile.py.j2

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import warnings
2525

2626
import nox
2727

28+
FLAKE8_VERSION = "flake8==6.1.0"
2829
BLACK_VERSION = "black==22.3.0"
2930
ISORT_VERSION = "isort==5.10.1"
3031
LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]
@@ -149,7 +150,7 @@ def lint(session):
149150
Returns a failure if the linters find linting errors or sufficiently
150151
serious code quality issues.
151152
"""
152-
session.install("flake8", BLACK_VERSION)
153+
session.install(FLAKE8_VERSION, BLACK_VERSION)
153154
session.run(
154155
"black",
155156
"--check",

0 commit comments

Comments
 (0)