Merge pull request #23 from negz/developers

Add a 'development' convenience script
This commit is contained in:
Nic Cope 2024-01-11 14:25:18 -08:00 committed by GitHub
commit 099c8db34b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View File

@ -19,6 +19,9 @@ This template uses [Python][python], [Docker][docker], and the [Crossplane
CLI][cli] to build functions.
```shell
# Run the code in development mode, for crossplane beta render
hatch run development
# Lint the code - see pyproject.toml
hatch run lint:check

View File

@ -5,7 +5,7 @@ with these example manifests.
```shell
# Run the function locally
$ hatch run python function/main.py --insecure --debug
$ hatch run development
```
```shell

View File

@ -44,6 +44,9 @@ type = "virtual"
path = ".venv-default"
dependencies = ["ipython==8.20.0"]
[tool.hatch.envs.default.scripts]
development = "python function/main.py --insecure --debug"
[tool.hatch.envs.lint]
type = "virtual"
detached = true