From e8cf9d3855c5a4314958f85007e145f57b5fbfed Mon Sep 17 00:00:00 2001 From: Caden <132690522+marofke@users.noreply.github.com> Date: Thu, 11 May 2023 17:03:21 -0500 Subject: [PATCH] fix(linting): import from future annotations to fix python 3.7 linting --- .github/workflows/reuse_python_build.yml | 2 +- README.md | 4 ++-- hatch.toml | 4 ++-- src/bealine_job_attachments/asset_sync.py | 2 +- test/bealine/job_bundle/test_job_submission.py | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/reuse_python_build.yml b/.github/workflows/reuse_python_build.yml index 9d8f4eee8..902747094 100644 --- a/.github/workflows/reuse_python_build.yml +++ b/.github/workflows/reuse_python_build.yml @@ -15,7 +15,7 @@ jobs: contents: read strategy: matrix: - python-version: ['3.9', '3.10', '3.11'] + python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] env: PYTHON: ${{ matrix.python-version }} CODEARTIFACT_REGION: "us-west-2" diff --git a/README.md b/README.md index f724f4bc6..b756c4b25 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # BealineClientLib -## Overview +## Overview This is a shared Python library that implements functionality to support client applications using BeaLine. @@ -81,4 +81,4 @@ hatch run all:test ## Publish ``` ./publish.sh -``` \ No newline at end of file +``` diff --git a/hatch.toml b/hatch.toml index 7853cdc6c..2b69a38a7 100644 --- a/hatch.toml +++ b/hatch.toml @@ -38,7 +38,7 @@ lint = [ ] [[envs.all.matrix]] -python = ["3.7", "3.9", "3.10", "3.11"] +python = ["3.7", "3.8", "3.9", "3.10", "3.11"] [envs.integ.scripts] test = "pytest {args:test/bealine_job_attachments/integ} -vvv --numprocesses=1" @@ -50,4 +50,4 @@ PIP_INDEX_URL="https://aws:{env:CODEARTIFACT_AUTH_TOKEN}@{env:CODEARTIFACT_DOMAI build = "hatch build" [envs.codebuild.env-vars] -PIP_INDEX_URL="" \ No newline at end of file +PIP_INDEX_URL="" diff --git a/src/bealine_job_attachments/asset_sync.py b/src/bealine_job_attachments/asset_sync.py index 348a402cf..060bd4b67 100644 --- a/src/bealine_job_attachments/asset_sync.py +++ b/src/bealine_job_attachments/asset_sync.py @@ -1,7 +1,7 @@ # Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. """ Module for File Attachment synching """ - +from __future__ import annotations import sys import time from io import BytesIO diff --git a/test/bealine/job_bundle/test_job_submission.py b/test/bealine/job_bundle/test_job_submission.py index e57c22b38..c6f3506ef 100644 --- a/test/bealine/job_bundle/test_job_submission.py +++ b/test/bealine/job_bundle/test_job_submission.py @@ -4,7 +4,7 @@ Tests the bealine.job_bundle.submission functions for building up the arguments to call CreateJob with. """ - +from __future__ import annotations import os from typing import Any, Dict, Optional, Tuple from unittest.mock import Mock, patch