You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,7 @@ Here are some questions that you should answer in your plan:
87
87
88
88
We welcome you to use the GitHub issue tracker to report bugs or suggest features.
89
89
90
-
When filing an issue, please check [existing open](https://github.com/awslabs/PRIVATE-aws-sam-development/issues), or [recently closed](https://github.com/awslabs/PRIVATE-aws-sam-development/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20), issues to make sure somebody else hasn't already
90
+
When filing an issue, please check [existing open](https://github.com/awslabs/serverless-application-model/issues), or [recently closed](https://github.com/awslabs/serverless-application-model/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20), issues to make sure somebody else hasn't already
91
91
reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
Copy file name to clipboardExpand all lines: DEVELOPMENT_GUIDE.rst
+18-3Lines changed: 18 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ steps manually.
17
17
18
18
1. Install Python Versions
19
19
~~~~~~~~~~~~~~~~~~~~~~~~~~
20
-
Our officially supported Python versions are 2.7, 3.6, and 3.7. Follow the idioms from this `excellent cheatsheet`_ to
20
+
Our officially supported Python versions are 2.7, 3.6, 3.7 and 3.8. Follow the idioms from this `excellent cheatsheet`_ to
21
21
make sure your code is compatible with both Python 2.7 and 3 versions.
22
22
23
23
Setup Python locally using `pyenv`_
@@ -26,8 +26,23 @@ Setup Python locally using `pyenv`_
26
26
#. ``pyenv install 2.7.14``
27
27
#. Make the Python version available in the project: ``pyenv local 2.7.14``
28
28
29
+
2. Install Additional Tooling
30
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31
+
1. Black
32
+
~~~~~~~~
33
+
We format our code using [Black](https://github.com/python/black) and verify the source code is black compliant
34
+
in Appveyor during PRs. You can find installation instructions on [Black's docs](https://black.readthedocs.io/en/stable/installation_and_usage.html).
29
35
30
-
2. Activate Virtualenv
36
+
After installing, you can run our formatting through our Makefile by `make black-format` or integrating Black directly in your favorite IDE (instructions
37
+
can be found [here](https://black.readthedocs.io/en/stable/editor_integration.html))
38
+
39
+
Pre-commit
40
+
~~~~~~~~~~
41
+
If you don't wish to manually run black on each pr or install black manually, we have integrated black into git hooks through [pre-commit](https://pre-commit.com/).
42
+
After installing pre-commit, run `pre-commit install` in the root of the project. This will install black for you and run the black formatting on
43
+
commit.
44
+
45
+
3. Activate Virtualenv
31
46
~~~~~~~~~~~~~~~~~~~~~~
32
47
Virtualenv allows you to install required libraries outside of the Python installation. A good practice is to setup
33
48
a different virtualenv for each project. `pyenv`_ comes with a handy plugin that can create virtualenv.
@@ -37,7 +52,7 @@ a different virtualenv for each project. `pyenv`_ comes with a handy plugin that
37
52
#. [Optional] Automatically activate the virtualenv in for this folder: ``pyenv local samtranslator27``
38
53
39
54
40
-
3. Install dependencies
55
+
4. Install dependencies
41
56
~~~~~~~~~~~~~~~~~~~~~~~
42
57
Install dependencies by running the following command. Make sure the Virtualenv you created above is active.
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,7 @@ Read the [SAM Documentation Contribution Guide](https://github.com/awsdocs/aws-s
87
87
started.
88
88
89
89
### Join the SAM Community on Slack
90
-
[Join the SAM developers channel (#samdev)](https://join.slack.com/t/awsdevelopers/shared_invite/enQtMzg3NTc5OTM2MzcxLTdjYTdhYWE3OTQyYTU4Njk1ZWY4Y2ZjYjBhMTUxNGYzNDg5MWQ1ZTc5MTRlOGY0OTI4NTdlZTMwNmI5YTgwOGM/) on Slack to collaborate with fellow community members and the AWS SAM team.
90
+
[Join the SAM developers channel (#samdev)](https://join.slack.com/t/awsdevelopers/shared_invite/enQtMzg3NTc5OTM2MzcxLTIxNjc0ZTJkNmYyNWY3OWE4NTFiNzU1ZTM2Y2VkNmFlNjQ2YjI3YTE1ZDA5YjE5NDE2MjVmYWFlYWIxNjE2NjU) on Slack to collaborate with fellow community members and the AWS SAM team.
Copy file name to clipboardExpand all lines: docs/cloudformation_compatibility.rst
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,7 @@ DeploymentPreference All
63
63
Layers All
64
64
AutoPublishAlias Ref of a CloudFormation Parameter Alias resources created by SAM uses a LocicalId <FunctionLogicalId+AliasName>. So SAM either needs a string for alias name, or a Ref to template Parameter that SAM can resolve into a string.
0 commit comments