diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e4336dc..6cb55a3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,7 +18,7 @@ repos: files: ^src/|^scripts/|^migrant/ - repo: https://github.com/asottile/pyupgrade - rev: v3.3.1 + rev: v3.8.0 hooks: - id: pyupgrade args: ["--py39-plus"] @@ -28,3 +28,8 @@ repos: hooks: - id: isort args: ["--profile", "black", "--line-length", "88", "--trailing-comma"] + + - repo: https://github.com/pycqa/flake8 + rev: 6.0.0 + hooks: + - id: flake8 diff --git a/src/shoobx/mocks3/tests/test_config.py b/src/shoobx/mocks3/tests/test_config.py index 3652004..6151ff9 100644 --- a/src/shoobx/mocks3/tests/test_config.py +++ b/src/shoobx/mocks3/tests/test_config.py @@ -5,11 +5,11 @@ ############################################################################### """Shoobx S3 Config Test """ -import mock import os import shutil import tempfile import unittest +from unittest import mock from shoobx.mocks3 import config @@ -43,4 +43,4 @@ def test_configure_dupe_env_key(self): with open(config_path, "w") as file: file.write(TEST_CONFIG % self._dir) # Ensure loading does not fail. - app = config.configure(config_path) + config.configure(config_path)