Skip to content

Commit

Permalink
Support python3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
vyahello committed Apr 17, 2021
1 parent a27070e commit 6d9aaa4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ python:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
env:
- IMAGE_REPO=vyahello/pep8-checker IMAGE_VERSION=0.0.2
addons:
apt:
update: true
install:
- pip install pip -U
- pip install pip==20.2.0
- pip install -r requirements.txt -U
- pip install -r requirements-dev.txt -U
script:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

### Production

- python 3.6, 3.7, 3.8
- python 3.6, 3.7, 3.8, 3.9
- [bottle](https://bottlepy.org/docs/dev/tutorial.html)
- [AWS lambda](https://aws.amazon.com/)
- [travis](https://travis-ci.org/) CI
Expand Down
4 changes: 2 additions & 2 deletions checker/remote.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
"""Represents executable entrypoint for AWS lambda function."""
from contextlib import redirect_stdout
from io import StringIO
from tempfile import NamedTemporaryFile as temp_file
from tempfile import NamedTemporaryFile
from typing import Any, Dict
import pycodestyle


def lambda_handler(event: Dict[str, Any]) -> Dict[str, Any]:
"""Returns response from AWS lambda execution."""
code: str = event.get('code', '')
with open(temp_file(dir='/tmp').name, 'w') as file:
with open(NamedTemporaryFile(dir='/tmp').name, 'w') as file:
file.write(f'{code}\n')
file.seek(0)
output = StringIO()
Expand Down

0 comments on commit 6d9aaa4

Please sign in to comment.