File tree Expand file tree Collapse file tree 9 files changed +33
-37
lines changed
python/rpdk/python/templates
src/cloudformation_cli_python_lib Expand file tree Collapse file tree 9 files changed +33
-37
lines changed Original file line number Diff line number Diff line change
1
+ exclude : ^(buildspec.yml|.pre-commit-config.yaml)$
2
+ fail_fast : true
1
3
repos :
2
4
- repo : https://github.com/pre-commit/mirrors-isort
3
5
rev : v4.3.17
4
6
hooks :
5
7
- id : isort
8
+ # language_version: python3.6
6
9
- repo : https://github.com/ambv/black
7
- rev : stable
10
+ rev : 20.8b1
8
11
hooks :
9
12
- id : black
10
13
exclude : templates/
Original file line number Diff line number Diff line change 21
21
- python : " 3.6"
22
22
- python : " 3.7"
23
23
- 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
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- {{ support_lib_name }}== 2.0 .0
1
+ {{ support_lib_name }}== 2.1 .0
Original file line number Diff line number Diff line change
1
+ # boto3 doesn't have stub files
1
2
from typing import Optional
2
3
3
- # boto3 doesn't have stub files
4
4
from boto3 .session import Session # type: ignore
5
5
6
6
from .utils import Credentials
Original file line number Diff line number Diff line change 12
12
ProgressEvent ,
13
13
)
14
14
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
17
17
18
18
19
19
@pytest .fixture (scope = "module" )
Original file line number Diff line number Diff line change 12
12
format_dimensions ,
13
13
)
14
14
15
- from botocore .stub import Stubber
15
+ from botocore .stub import Stubber # pylint: disable=C0411
16
16
17
17
RESOURCE_TYPE = "Aa::Bb::Cc"
18
18
NAMESPACE = MetricsPublisherProxy ._make_namespace ( # pylint: disable=protected-access
Original file line number Diff line number Diff line change 12
12
deserialize_list ,
13
13
)
14
14
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
17
17
18
18
19
19
def roundtrip (value ):
Original file line number Diff line number Diff line change @@ -94,10 +94,10 @@ def test_initialize(project):
94
94
"README.md" ,
95
95
"foo-bar-baz.json" ,
96
96
"requirements.txt" ,
97
- "inputs" ,
98
- "inputs/inputs_1_update.json" ,
99
97
"inputs/inputs_1_invalid.json" ,
98
+ "inputs/inputs_1_update.json" ,
100
99
"inputs/inputs_1_create.json" ,
100
+ "inputs" ,
101
101
"src" ,
102
102
"src/foo_bar_baz" ,
103
103
"src/foo_bar_baz/__init__.py" ,
You can’t perform that action at this time.
0 commit comments