Skip to content

Commit

Permalink
fix(linting): import from future annotations to fix python 3.7 linting
Browse files Browse the repository at this point in the history
  • Loading branch information
marofke authored May 11, 2023
1 parent ac44c2a commit e8cf9d3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/reuse_python_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# BealineClientLib

## Overview
## Overview

This is a shared Python library that implements functionality to support
client applications using BeaLine.
Expand Down Expand Up @@ -81,4 +81,4 @@ hatch run all:test
## Publish
```
./publish.sh
```
```
4 changes: 2 additions & 2 deletions hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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=""
PIP_INDEX_URL=""
2 changes: 1 addition & 1 deletion src/bealine_job_attachments/asset_sync.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/bealine/job_bundle/test_job_submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e8cf9d3

Please sign in to comment.