Skip to content

Commit 4429cac

Browse files
committed
modified inputs
1 parent 5f6ecf8 commit 4429cac

File tree

9 files changed

+33
-37
lines changed

9 files changed

+33
-37
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
exclude: ^(buildspec.yml|.pre-commit-config.yaml)$
2+
fail_fast: true
13
repos:
24
- repo: https://github.com/pre-commit/mirrors-isort
35
rev: v4.3.17
46
hooks:
57
- id: isort
8+
# language_version: python3.6
69
- repo: https://github.com/ambv/black
7-
rev: stable
10+
rev: 20.8b1
811
hooks:
912
- id: black
1013
exclude: templates/

.travis.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,23 @@ jobs:
2121
- python: "3.6"
2222
- python: "3.7"
2323
- python: "3.8"
24+
- stage: "integ python 3.6"
25+
language: python
26+
python: "3.6"
27+
script:
28+
- DIR=$(mktemp -d)
29+
- cd "$DIR"
30+
- ls -la
31+
- printf "AWS::Foo::Bar\n1\ny" | cfn init -vv
32+
- ls -la
33+
- mypy src/aws_foo_bar/ --strict --implicit-reexport
34+
- stage: "integ python 3.7"
35+
language: python
36+
python: "3.7"
37+
script:
38+
- DIR=$(mktemp -d)
39+
- cd "$DIR"
40+
- ls -la
41+
- printf "AWS::Foo::Bar\n2\ny" | cfn init -vv
42+
- ls -la
43+
- mypy src/aws_foo_bar/ --strict --implicit-reexport

buildspec.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{ support_lib_name }}==2.0.0
1+
{{ support_lib_name }}==2.1.0

src/cloudformation_cli_python_lib/boto3_proxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
# boto3 doesn't have stub files
12
from typing import Optional
23

3-
# boto3 doesn't have stub files
44
from boto3.session import Session # type: ignore
55

66
from .utils import Credentials

tests/lib/interface_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
ProgressEvent,
1313
)
1414

15-
import hypothesis.strategies as s
16-
from hypothesis import given
15+
import hypothesis.strategies as s # pylint: disable=C0411
16+
from hypothesis import given # pylint: disable=C0411
1717

1818

1919
@pytest.fixture(scope="module")

tests/lib/metrics_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
format_dimensions,
1313
)
1414

15-
from botocore.stub import Stubber
15+
from botocore.stub import Stubber # pylint: disable=C0411
1616

1717
RESOURCE_TYPE = "Aa::Bb::Cc"
1818
NAMESPACE = MetricsPublisherProxy._make_namespace( # pylint: disable=protected-access

tests/lib/utils_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
deserialize_list,
1313
)
1414

15-
import hypothesis.strategies as s
16-
from hypothesis import given
15+
import hypothesis.strategies as s # pylint: disable=C0411
16+
from hypothesis import given # pylint: disable=C0411
1717

1818

1919
def roundtrip(value):

tests/plugin/codegen_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ def test_initialize(project):
9494
"README.md",
9595
"foo-bar-baz.json",
9696
"requirements.txt",
97-
"inputs",
98-
"inputs/inputs_1_update.json",
9997
"inputs/inputs_1_invalid.json",
98+
"inputs/inputs_1_update.json",
10099
"inputs/inputs_1_create.json",
100+
"inputs",
101101
"src",
102102
"src/foo_bar_baz",
103103
"src/foo_bar_baz/__init__.py",

0 commit comments

Comments
 (0)