diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a9cc9a0a9..662333470 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,7 +22,7 @@ repos: # Autoformat: Python code - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.1.1 hooks: - id: black args: @@ -73,7 +73,7 @@ repos: # Lint: Python code - repo: https://github.com/PyCQA/flake8 - rev: "6.1.0" + rev: "7.0.0" hooks: - id: flake8 diff --git a/images/analytics-publisher/archiver.py b/images/analytics-publisher/archiver.py index 12dd086f3..b2e071d09 100644 --- a/images/analytics-publisher/archiver.py +++ b/images/analytics-publisher/archiver.py @@ -1,6 +1,7 @@ """ Read event logs from stackdriver & export them to Google Cloud Storage """ + import argparse import json import tempfile diff --git a/images/analytics-publisher/cloudcosts.py b/images/analytics-publisher/cloudcosts.py index 1d9fd9a46..227b03497 100644 --- a/images/analytics-publisher/cloudcosts.py +++ b/images/analytics-publisher/cloudcosts.py @@ -1,6 +1,7 @@ """ Produces daily summaries of GCP spending data. """ + import argparse import csv import io diff --git a/tests/test_http.py b/tests/test_http.py index 0f16281f2..5735c74dc 100644 --- a/tests/test_http.py +++ b/tests/test_http.py @@ -1,4 +1,5 @@ """Basic HTTP tests to make sure things are running""" + import pprint import pytest