Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 27a3ee7

Browse files
Código de lambda SQS light
1 parent 0ad9c67 commit 27a3ee7

File tree

135 files changed

+7809
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+7809
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# .coveragerc to control coverage.py
2+
[paths]
3+
source =
4+
./chalicelib/
5+
./flask_app/
6+
./lambda_app/
7+
./app.py
8+
9+
[run]
10+
branch = True
11+
12+
omit =
13+
*/test*
14+
*venv/*,
15+
*vendor/*
16+
*~/.local/lib/*
17+
/usr/local/lib*
18+
/home/*/.local/*
19+
20+
21+
[report]
22+
omit =
23+
*/test*
24+
*venv/*,
25+
*vendor/*
26+
*~/.local/lib/*
27+
/usr/local/lib*
28+
/home/*/.local/*
29+
30+
[html]
31+
directory = ./target/unit/coverage_html/
32+
33+
[xml]
34+
output = ./target/unit/report.xml
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
**/venv
2+
.git
3+
.gitignore
4+
docker-compose.yml
5+
docker-compose-chalice.yml
6+
bin/
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
[*]
2+
indent_style = space
3+
indent_size = 2
4+
end_of_line = lf
5+
charset = utf-8
6+
trim_trailing_whitespace = true
7+
insert_final_newline = true
8+
9+
# Docstrings and comments use max_line_length = 79
10+
[*.py]
11+
indent_style = space
12+
indent_size = 4
13+
insert_final_newline = true
14+
trim_trailing_whitespace = true
15+
end_of_line = lf
16+
charset = utf-8
17+
max_line_length = 119
18+
19+
20+
[{*.jhm, *.xslt, *.xul, *.rng, *.xsl, *.xsd, *.ant, *.tld, *.fxml, *.jrxml, *.xml, *.jnlp, *.wsdl}]
21+
indent_style = space
22+
indent_size = 4
23+
24+
[{.babelrc, .prettierrc, .stylelintrc, .eslintrc, jest.config, *.json, *.js, *.js.map, *.ts, *.tsx, *.jsb3, *.jsb2, *.bowerrc, *.graphqlconfig}]
25+
indent_style = space
26+
indent_size = 2
27+
28+
[.editorconfig]
29+
indent_style = space
30+
indent_size = 4
31+
32+
[*.less]
33+
indent_style = space
34+
indent_size = 2
35+
36+
[*.jshintrc]
37+
indent_style = space
38+
indent_size = 2
39+
40+
[*.jscsrc]
41+
indent_style = space
42+
indent_size = 2
43+
44+
[{tsconfig.lib.json, tsconfig.spec.json, tsconfig.app.json, tsconfig.json, tsconfig.e2e.json}]
45+
indent_style = space
46+
indent_size = 2
47+
48+
[*.ejs]
49+
indent_style = space
50+
indent_size = 4
51+
52+
[{.analysis_options, *.yml, *.yaml}]
53+
indent_style = space
54+
indent_size = 2
55+
56+
[*.md]
57+
trim_trailing_whitespace = false
58+
59+
# Use 4 spaces for the Python files
60+
[*.php]
61+
indent_size = 4
62+
max_line_length = 120
63+
64+
[*.twig]
65+
indent_size = 4
66+
max_line_length = 120
67+
68+
# The JSON files contain newlines inconsistently
69+
[*.json]
70+
insert_final_newline = false
71+
72+
# Minified JavaScript files shouldn't be changed
73+
[**.min.js]
74+
indent_style = space
75+
insert_final_newline = false
76+
77+
[*.gitkeep]
78+
insert_final_newline = false
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
name: Bug reports
3+
about: Bug reports
4+
title: bug - [component/module] - bug title
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
<!-- ## We appreciate you creating a new issue 😄!
10+
11+
Don't forget to check that there are no other open/closed issues before creating your issue. Someone may have already asked this question/request.
12+
Please fill in as many of the fields as possible to facilitate the resolution or clarification of your question ❤️.
13+
14+
-->
15+
16+
#### 1. Bug description:
17+
18+
> Enter a simple description about the bug
19+
> Example: When I \_**\_, I expected the behavior \_\_** but the behavior \_\_\_\_ occurred
20+
21+
---
22+
23+
#### 3. Link to bug example:
24+
25+
> Link to CodeSandbox or any sandbox service that shows the error happening (see https://github.com/accezar/multi-package-start#codesandbox-templates for examples)
26+
27+
---
28+
29+
#### 4. Step-by-step to reproduces the error behavior:
30+
31+
> 1. Go to '...'
32+
> 2. Click on '....'
33+
> 3. Get the error
34+
35+
---
36+
37+
#### 5. Screenshots
38+
39+
> Se possível, adicione screenshots para ajudar a explicar o erro
40+
41+
---
42+
43+
#### 6. Extra info
44+
45+
> Add any additional information here that you think is relevant to understanding the issue
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Documentation Request
3+
about: Request to add or change documentation
4+
title: doc - [component] - request title
5+
labels: documentation
6+
assignees: ''
7+
8+
---
9+
10+
<!-- ## Thank you for creating a documentation request 📚!
11+
12+
If you have any ideas for a documentation topic, noticed that there is something that is not properly documented or there is something incorrect in our documentation, you have come to the right place! :D
13+
14+
-->
15+
16+
#### 1. Topic:
17+
18+
> What is the topic (component, function, etc) of your request?
19+
>
20+
> Ex: Pull Request Template
21+
22+
---
23+
24+
#### 2. Description:
25+
26+
> What do you think should be added or changed?
27+
>
28+
> Ex: Add a \_\_\_\_ field in the Pull Request template
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
name: Feature request
3+
about: Request a new feature or improvement
4+
title: feat - [component/context] - request title
5+
labels: enhancement
6+
assignees: ''
7+
---
8+
9+
<!-- ## Thank you for creating a request 😄!
10+
11+
Don't forget to check that there are no other open/closed issues before creating your issue. Someone may have already asked this question/request.
12+
Please fill in as many of the fields as possible to facilitate the resolution or clarification of your question ❤️.
13+
14+
-->
15+
16+
#### 1. Description:
17+
18+
> Describe your request in one or two sentences:
19+
20+
---
21+
22+
#### 2. Problem/Justification of Request:
23+
24+
> Please describe the reason for this request to be added or changed. If it's related to a problem, please describe it as well.
25+
26+
---
27+
28+
#### 3. Proposed Solution:
29+
30+
> Describe your idea for a solution to the problem.
31+
32+
---
33+
34+
#### 4. Alternatives:
35+
36+
> What other alternatives were considered before ordering this feature?
37+
38+
---
39+
40+
#### 5. Additional Information:
41+
42+
> Information, details or resources (links, screenshots, etc.) that will facilitate this task.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!---
2+
Thanks for opening a Pull Request 💖!
3+
4+
Please read the following points before requesting your Pull Request:
5+
- Keep your PR as simple as possible;
6+
- Limit your PR to just one topic (docs, feat, refact, ci, or bugfix);
7+
- Remove this comment.
8+
-->
9+
## Change type
10+
- [x] Bugfix (code changes that **DO NOT CHANGE** the business rule)
11+
- [ ] New Feature (code additions that **DO NOT CHANGE** the business rule)
12+
- [ ] Code improvement (code changes that **DO NOT CHANGE** the business rule)
13+
- [ ] Fixes or new features that **CHANGE** the business rule
14+
15+
## Proposed changes/Description
16+
Describe your changes briefly and objectively.
17+
<< Add here Pull Request. >>
18+
19+
## Task
20+
21+
This Pull Request is associated with the following tasks in Jira:
22+
[LINK_TO_JIRA_ISSUE](https://madeiramadeira.atlassian.net/browse/ABC-123)
23+
24+
## Proposed changes
25+
Describe your changes briefly and objectively.
26+
* Foo
27+
* Bar
28+
* Baz
29+
30+
## Checklist
31+
32+
- [ ] Have you written tests for your changes?
33+
- [ ] Have you successfully ran tests with your changes locally?
34+
- [ ] Have you lint your code locally prior to submission?
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Summary:
2+
# Execute the pylint analysis on code
3+
# Read here for mode info: https://pylint.pycqa.org/en/latest/ and https://www.python.org/dev/peps/pep-0008/
4+
5+
name: Execute the pylint analysis
6+
7+
#on:
8+
# # There are several ways to trigger Github actions - See https://help.github.com/en/actions/reference/events-that-trigger-workflows#example-using-a-single-event for a comprehensive list:
9+
# # - "push": Triggers each time a commit is pushed
10+
# # - "pull_request": Triggers each time a commit is pushed within a pull request, it makes it much easier to write comments within the PR, but it suffers some strong limitations:
11+
# # - There is no way to trigger when a PR is merged into another - See https://github.community/t/pull-request-action-does-not-run-on-merge/16092?u=vadorequest
12+
# # - It won't trigger when the PR is conflicting with its base branch - See https://github.community/t/run-actions-on-pull-requests-with-merge-conflicts/17104/2?u=vadorequest
13+
# push: # Triggers on each pushed commit
14+
# branches:
15+
# - 'master'
16+
on: [ push ]
17+
18+
jobs:
19+
setup-environment:
20+
name: Setup deployment environment (Ubuntu 18.04 - Python 3.x)
21+
runs-on: ubuntu-18.04
22+
strategy:
23+
matrix:
24+
python-version: [ "3.8", "3.9" ]
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Set up Python ${{ matrix.python-version }}
28+
uses: actions/setup-python@v2
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
architecture: x64
32+
pylint:
33+
runs-on: ubuntu-18.04
34+
needs: setup-environment
35+
steps:
36+
- uses: actions/checkout@v2
37+
- name: Install pylint
38+
run: |
39+
python -m pip install --upgrade pip
40+
pip install pylint
41+
- name: Execute pylint
42+
run: |
43+
# pylint --rcfile .pylintrc ./app.py ./lambda_app ./tests/unit ./tests/integration ./tests/component
44+
pylint --rcfile .pylintrc ./app.py ./lambda_app
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
node_modules
2+
.idea
3+
venv
4+
/db.sqlite3
5+
*.pyc
6+
*/**/__pycache__/*
7+
/.env
8+
9+
/.infrestructure/dist/deployment.zip
10+
/.infrestructure/.terraform/
11+
/.infrastructure/.terraform.lock.hcl
12+
/.infrastructure/terraform.tfstate
13+
/.infrastructure/terraform.tfstate.backup
14+
/.infrastructure/plan.json
15+
/plan.json
16+
/plan.json.binary
17+
/docker/elk/logs/elasticsearch.log
18+
/.infrastructure/.terraform/
19+
/.chalice/deployments/
20+
/target/
21+
/target/dynamodb-local/
22+
*_us-east-2.db
23+
*_sa-east-1.db
24+
/docker/aws/credentials
25+
/deployment.zip
26+
/sam.json
27+
/.coverage
28+
29+
# mantem a vendor
30+
!/vendor
31+
# ignora os demais arquivos
32+
/vendor/*
33+
# mantem essa pasta
34+
!/vendor/public
35+
# mantem essa pasta
36+
!/vendor/datasources
37+
38+
# Coverage results and execution report
39+
!/target/integration/report.xml
40+
!/target/component/report.xml
41+
!/target/unit/report.xml
42+
43+
!/target/integration/clover.xml
44+
!/target/component/clover.xml
45+
!/target/unit/clover.xml
46+
47+
!/target/integration/junit-report.xml
48+
!/target/component/junit-report.xml
49+
!/target/unit/junit-report.xml
50+
51+
# ignore
52+
/target/component/coverage_html/
53+
/target/integration/coverage_html/
54+
/target/unit/coverage_html/
55+
/madeira_fc.db
56+
57+
imagedefinitions.json
58+
/include/*
59+
config/integration.en
60+
/node_modules/
61+
62+
/lambda-full.zip
63+
64+
#output lambda
65+
output/response.json

examples/lambda_sqs_light/.pep8

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[pycodestyle]
2+
max_line_length = 120
3+
ignore = E501

0 commit comments

Comments
 (0)