diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 41985ef..93e89e3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,12 +19,8 @@ repos: exclude: tests/integration/conftest.py - id: end-of-file-fixer - id: trailing-whitespace - - id: flake8 - args: - - --max-line-length=100 - - --per-file-ignores=files/packit.wsgi:F401,E402 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.711 + rev: v1.2.0 hooks: - id: mypy args: [--no-strict-optional, --ignore-missing-imports] diff --git a/ocp-stream-generator/ocp_stream_generator/stream_generator.py b/ocp-stream-generator/ocp_stream_generator/stream_generator.py index 37b8d3d..c351ab7 100755 --- a/ocp-stream-generator/ocp_stream_generator/stream_generator.py +++ b/ocp-stream-generator/ocp_stream_generator/stream_generator.py @@ -26,6 +26,11 @@ import yaml import json import sys + +from pathlib import Path + +sys.path.append(str(Path(__file__).parent.parent.absolute())) + from ocp_stream_generator.distribution_data import ( abbreviations, images, diff --git a/ocp-stream-generator/tests/test_imagestream_file.py b/ocp-stream-generator/tests/test_imagestream_file.py index 62ef67d..119d962 100644 --- a/ocp-stream-generator/tests/test_imagestream_file.py +++ b/ocp-stream-generator/tests/test_imagestream_file.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 - from ocp_stream_generator.stream_generator import ImagestreamFile