Skip to content

Commit 31566de

Browse files
author
Eduardo Rodrigues
committed
add cli typescript plugin
1 parent a431842 commit 31566de

22 files changed

+1589
-0
lines changed

.pre-commit-config.yaml

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/mirrors-isort
3+
rev: v4.3.17
4+
hooks:
5+
- id: isort
6+
# language_version: python3.6
7+
- repo: https://github.com/ambv/black
8+
rev: stable
9+
hooks:
10+
- id: black
11+
# language_version: python3.6
12+
- repo: https://github.com/pre-commit/pre-commit-hooks
13+
rev: v2.0.0
14+
hooks:
15+
- id: check-case-conflict
16+
- id: end-of-file-fixer
17+
- id: mixed-line-ending
18+
args:
19+
- --fix=lf
20+
- id: trailing-whitespace
21+
- id: flake8
22+
additional_dependencies:
23+
- flake8-bugbear>=19.3.0
24+
- flake8-builtins>=1.4.1
25+
- flake8-commas>=2.0.0
26+
- flake8-comprehensions>=2.1.0
27+
- flake8-debugger>=3.1.0
28+
- flake8-pep3101>=1.2.1
29+
# language_version: python3.6
30+
- id: pretty-format-json
31+
args:
32+
- --autofix
33+
- --indent=4
34+
- --no-sort-keys
35+
- id: check-merge-conflict
36+
- id: check-yaml
37+
- repo: https://github.com/pre-commit/pygrep-hooks
38+
rev: v1.3.0
39+
hooks:
40+
- id: python-check-blanket-noqa
41+
- id: python-check-mock-methods
42+
- id: python-no-log-warn
43+
- repo: https://github.com/PyCQA/bandit
44+
rev: f5a6f0ca62 # TODO: update once a release > 1.5.1 hits with this change in
45+
hooks:
46+
- id: bandit
47+
files: "^python/"
48+
- repo: local
49+
hooks:
50+
- id: pylint-local
51+
name: pylint-local
52+
description: Run pylint in the local virtualenv
53+
entry: pylint "setup.py" "python/" "tests/"
54+
language: system
55+
# ignore all files, run on hard-coded modules instead
56+
pass_filenames: false
57+
always_run: true
58+
- id: pytest-local
59+
name: pytest-local
60+
description: Run pytest in the local virtualenv
61+
entry: pytest --cov=rpdk.typescript --doctest-modules tests/
62+
language: system
63+
# ignore all files, run on hard-coded modules instead
64+
pass_filenames: false
65+
always_run: true

CODE_OF_CONDUCT.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Code of Conduct
2+
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
3+
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq).

CONTRIBUTING.md

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Contributing Guidelines
2+
3+
Thank you for your interest in contributing to our project. Whether it's a bug report, new feature, correction, or additional
4+
documentation, we greatly value feedback and contributions from our community.
5+
6+
Please read through this document before submitting any issues or pull requests to ensure we have all the necessary
7+
information to effectively respond to your bug report or contribution.
8+
9+
10+
## Reporting Bugs/Feature Requests
11+
12+
We welcome you to use the GitHub issue tracker to report bugs or suggest features.
13+
14+
When filing an issue, please check [existing open](https://github.com/eduardomourar/cloudformation-cli-typescript-plugin/issues), or [recently closed](https://github.com/eduardomourar/cloudformation-cli-typescript-plugin/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20), issues to make sure somebody else hasn't already
15+
reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
16+
17+
* A reproducible test case or series of steps
18+
* The version of our code being used
19+
* Any modifications you've made relevant to the bug
20+
* Anything unusual about your environment or deployment
21+
22+
23+
## Contributing via Pull Requests
24+
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:
25+
26+
1. You are working against the latest source on the *master* branch.
27+
2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
28+
3. You open an issue to discuss any significant work - we would hate for your time to be wasted.
29+
30+
To send us a pull request, please:
31+
32+
1. Fork the repository.
33+
2. Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
34+
3. Ensure local tests pass.
35+
4. Commit to your fork using clear commit messages.
36+
5. Send us a pull request, answering any default questions in the pull request interface.
37+
6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
38+
39+
GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
40+
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).
41+
42+
43+
## Finding contributions to work on
44+
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any ['help wanted'](https://github.com/eduardomourar/cloudformation-cli-typescript-plugin/labels/help%20wanted) issues is a great place to start.
45+
46+
47+
## Security issue notifications
48+
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public github issue.
49+
50+
51+
## Licensing
52+
53+
See the [LICENSE](https://github.com/eduardomourar/cloudformation-cli-typescript-plugin/blob/master/LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
54+
55+
We may ask you to sign a [Contributor License Agreement (CLA)](http://en.wikipedia.org/wiki/Contributor_License_Agreement) for larger changes.

NOTICE

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
AWS CloudFormation RPDK TypeScript Plugin
2+
Copyright 2020

Pipfile

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[[source]]
2+
name = "pypi"
3+
url = "https://pypi.org/simple"
4+
verify_ssl = true
5+
6+
[dev-packages]
7+
pylint = "*"
8+
pytest = "*"
9+
pytest-cov = "*"
10+
11+
[packages]
12+
cloudformation-cli-typescript-plugin = {editable = true,path = "."}
13+
14+
[requires]
15+
python_version = "3"

0 commit comments

Comments
 (0)