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.
|
CLI][cli] to build functions.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
# Run the code in development mode, for crossplane beta render
|
||||||
|
hatch run development
|
||||||
|
|
||||||
# Lint the code - see pyproject.toml
|
# Lint the code - see pyproject.toml
|
||||||
hatch run lint:check
|
hatch run lint:check
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ with these example manifests.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# Run the function locally
|
# Run the function locally
|
||||||
$ hatch run python function/main.py --insecure --debug
|
$ hatch run development
|
||||||
```
|
```
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
|
|
@ -44,6 +44,9 @@ type = "virtual"
|
||||||
path = ".venv-default"
|
path = ".venv-default"
|
||||||
dependencies = ["ipython==8.20.0"]
|
dependencies = ["ipython==8.20.0"]
|
||||||
|
|
||||||
|
[tool.hatch.envs.default.scripts]
|
||||||
|
development = "python function/main.py --insecure --debug"
|
||||||
|
|
||||||
[tool.hatch.envs.lint]
|
[tool.hatch.envs.lint]
|
||||||
type = "virtual"
|
type = "virtual"
|
||||||
detached = true
|
detached = true
|
||||||
|
|
Loading…
Reference in New Issue