diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 49e5c41120d..5e6a0f02599 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,6 +15,12 @@ repos: - id: double-quote-string-fixer - id: no-commit-to-branch args: [--branch, master] + - repo: https://github.com/PyCQA/flake8 + rev: 7.1.1 + hooks: + - id: flake8 + args: + - --select=W605 # required formatting jobs (run these last) # add comment "noqa" to ignore an import that should not be removed diff --git a/backend/src/apiserver/visualization/types/tfdv.py b/backend/src/apiserver/visualization/types/tfdv.py index c8abfa849c3..262dc98a137 100644 --- a/backend/src/apiserver/visualization/types/tfdv.py +++ b/backend/src/apiserver/visualization/types/tfdv.py @@ -72,7 +72,7 @@ def get_statistics_html( # facets element and then remove it once we have appended the serialized proto # string to the element. We do this to avoid any collision of ids when # displaying multiple facets output in the notebook. - html_template = """ + html_template = r"""