Skip to content

Commit 5adf440

Browse files
committed
linting
1 parent 6b238a4 commit 5adf440

File tree

13 files changed

+436
-376
lines changed

13 files changed

+436
-376
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ target/
6565
.*.sw?
6666
aws_lambda/.DS_Store
6767
.DS_Store
68-
.vscode/
68+
.vscode/

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ repos:
2424
name: 'Check for cleartext private keys stored'
2525
- id: flake8
2626
additional_dependencies:
27-
- flake8-docstrings
2827
- flake8-mutable
2928
- flake8-type-annotations
3029
- flake8-eradicate
@@ -52,6 +51,7 @@ repos:
5251
- '--remove-all-unused-imports'
5352
- '--ignore-init-module-imports'
5453
- '--remove-unused-variable'
54+
- '--ignore E231'
5555
- repo: https://github.com/psf/black
5656
rev: stable
5757
hooks:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ This would create environment variables in the lambda instance upon deploy. If
191191
your functions don't need environment variables, simply leave this section out
192192
of your config.
193193
194-
### Uploading to S3
194+
### Uploading to S3
195195
You may find that you do not need the toolkit to fully
196196
deploy your Lambda or that your code bundle is too large to upload via the API.
197197
You can use the ``upload`` command to send the bundle to an S3 bucket of your
@@ -219,7 +219,7 @@ requests are very welcome and highly encouraged. Please open an issue if this
219219
tool does not function as you'd expect.
220220
221221
222-
### How to release updates
222+
### How to release updates
223223
If this is the first time you're releasing to pypi,
224224
you'll need to run: ``pip install -r tests/dev_requirements.txt``.
225225

artwork/python-lambda.svg

Lines changed: 1 addition & 1 deletion
Loading

aws_lambda/__init__.py

100755100644
Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,28 @@
1-
# -*- coding: utf-8 -*-
21
# flake8: noqa
3-
__author__ = 'Nick Ficano'
4-
__email__ = '[email protected]'
5-
__version__ = '3.2.7'
2+
__author__ = "Nick Ficano"
3+
__email__ = "[email protected]"
4+
__version__ = "3.2.7"
65

7-
from .aws_lambda import deploy, deploy_s3, invoke, init, build, upload, cleanup_old_versions
6+
from .aws_lambda import (
7+
deploy,
8+
deploy_s3,
9+
invoke,
10+
init,
11+
build,
12+
upload,
13+
cleanup_old_versions,
14+
)
815

916
# Set default logging handler to avoid "No handler found" warnings.
1017
import logging
18+
1119
try: # Python 2.7+
1220
from logging import NullHandler
1321
except ImportError:
22+
1423
class NullHandler(logging.Handler):
1524
def emit(self, record):
1625
pass
1726

27+
1828
logging.getLogger(__name__).addHandler(NullHandler())

0 commit comments

Comments
 (0)