Merge pull request #23 from negz/developers
Add a 'development' convenience script
This commit is contained in:
commit
099c8db34b
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue