Skip to content

Commit 63dd4c5

Browse files
chore: clean up ahead of release (#26)
* docs: update documentation link * chore: update pre-commit hooks * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * chore: fix lines-too-long linter errors * chore: clean up logger * chore(examples): fix linter errros on pr_notifier * fix(build): missing important subpackages * chore: update scaleway-sdk to 0.5 * chore: also bump scaleway-sdk in pyproject * chore: update scw-serverless in examples Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 77c7964 commit 63dd4c5

File tree

24 files changed

+139
-98
lines changed

24 files changed

+139
-98
lines changed

.flake8

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
[flake8]
22
per-file-ignores =
3-
# ignore type hints returns in test
3+
# Ignore type hints returns in test
44
tests/*: ANN201
55
**/__init__.py: F401
6+
# Ignore invalid syntax in file that use python3.10
7+
examples/pr_notifier/*: E999
68
extend-ignore =
79
# See: https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html
810
E203,

.github/CODE_OF_CONDUCT.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,3 @@ available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.ht
7474

7575
For answers to common questions about this code of conduct, see
7676
https://www.contributor-covenant.org/faq
77-

.github/CONTRIBUTING.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The goal of the following guidelines is to have Pull Requests (PRs) that are fai
4949

5050
- **Pull Request title should respect [conventional commits](https://www.conventionalcommits.org/en/v1.0.0) specifications** and be clear on what is being changed.
5151
- **Keep it readable for human reviewers** and prefer a subset of functionality (code) with tests and documentation over delivering them separately
52-
- **Don't forget commenting code** to help reviewers understand
52+
- **Don't forget commenting code** to help reviewers understand
5353
- **Notify Work In Progress PRs** by prefixing the title with `[WIP]`
5454
- **Please, keep us updated.**
5555
We will try our best to merge your PR, but please notice that PRs may be closed after 30 days of inactivity.
@@ -63,4 +63,3 @@ Keep in mind only the **pull request title** will be used as commit message as w
6363
See [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md).
6464

6565
Thank you for reading through all of this, if you have any question feel free to [reach us](README.md#reach-us)!
66-

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,3 @@ labels: bug
2929
## More info
3030

3131
<!-- verion of serverless-api-project used, your python version, your OS version, steps to reproduce, etc. -->
32-

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,3 @@ labels: enhancement
2323
<!-- e.g. @app.resource -->
2424

2525
### References
26-

.github/pull_request_template.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,3 @@ If the change is not user facing, just write "NONE" in the release-note block be
2121

2222
- [ ] I have added unit test covering every changes I have made
2323
- [ ] I have updated the relevant documentation
24-

.pre-commit-config.yaml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
1+
ci:
2+
# Can't use a local installation of pylint with pre-commit.ci
3+
skip: [pylint]
4+
15
# See https://pre-commit.com for more information
26
# See https://pre-commit.com/hooks.html for more hooks
37
repos:
48
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.3.0
9+
rev: v4.4.0
610
hooks:
711
- id: trailing-whitespace
812
- id: end-of-file-fixer
913
- id: check-yaml
1014
- id: check-added-large-files
1115
- repo: https://github.com/psf/black
12-
rev: 22.10.0
16+
rev: 22.12.0
1317
hooks:
1418
- id: black
19+
args: [--safe, --quiet]
1520
- repo: https://github.com/pycqa/isort
16-
rev: 5.10.1
21+
rev: 5.11.4
1722
hooks:
1823
- id: isort
1924
name: isort (python)
@@ -30,7 +35,7 @@ repos:
3035
"--rcfile=pyproject.toml",
3136
]
3237
- repo: https://github.com/pycqa/flake8
33-
rev: 5.0.4
38+
rev: 6.0.0
3439
hooks:
3540
- id: flake8
3641
additional_dependencies: [flake8-annotations]
@@ -39,3 +44,7 @@ repos:
3944
hooks:
4045
- id: python-bandit-vulnerability-check
4146
args: [--skip, "B101", --recursive, clumper]
47+
- repo: https://github.com/regebro/pyroma
48+
rev: "4.1"
49+
hooks:
50+
- id: pyroma

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def hello_world(event, context):
1515
return "Hello World!"
1616
```
1717

18-
Deploy it with `scw_serverless`:
18+
Deploy it with `scw-serverless`:
1919

2020
```console
2121
scw-serverless deploy app.py
@@ -26,10 +26,10 @@ scw-serverless deploy app.py
2626
### Install
2727

2828
```console
29-
pip install scw_serverless
29+
pip install scw-serverless
3030
```
3131

32-
This will install `scw-serverless`:
32+
This will install the `scw-serverless` CLI:
3333

3434
```console
3535
scw-serverless --help
@@ -53,7 +53,7 @@ def hello_world(event, context):
5353
```
5454

5555
The configuration is done by passing arguments to the decorator.
56-
To view which arguments are supported, head over to this [documentation](https://serverless-apifw-docs.s3-website.fr-par.scw.cloud/configuring.html) page.
56+
To view which arguments are supported, head over to this [documentation](https://serverless-api-project.readthedocs.io/) page.
5757

5858
When you are ready, you can deploy your function with the `scw-serverless` CLI tool:
5959

@@ -65,7 +65,7 @@ The tool will use your Scaleway credentials from your environment and config fil
6565

6666
## What’s Next?
6767

68-
To learn more about the framework, have a look at the [documentation](https://serverless-apifw-docs.s3-website.fr-par.scw.cloud/index.html).
68+
To learn more about the framework, have a look at the [documentation](https://serverless-api-project.readthedocs.io/).
6969
If you want to see it in action, we provide some [examples](https://github.com/scaleway/serverless-api-project/tree/main/examples) to get you started.
7070

7171
## Contributing

SECURITY.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@ We will follow up with you promptly with more information and a plan for remedia
1111
We currently do not offer a paid security bounty program, but we would love to send some
1212
Scaleway swag your way along with our deepest gratitude for your assistance in making
1313
Scaleway a more secure Cloud ecosystem.
14-

examples/cron/handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
inputs={"myname": "Georges"},
1515
privacy="public",
1616
)
17-
def hello_cron(event: dict[str, Any], _context: dict[str, Any]):
17+
def hello_cron(event: dict[str, Any], _context: dict[str, Any]) -> dict[str, Any]:
1818
"""A simple cron that regularly greets you during business days."""
1919
body = json.loads(event["body"])
2020
my_name = body["myname"]

0 commit comments

Comments
 (0)