generated from Luis/nextjs-python-web-template
Added sqlalchemy dependency #8
@@ -11,6 +11,7 @@ Welcome to our website template repository! This template is designed to help yo
|
|||||||
**Dependency Management**: We use the [Nix package manager](https://nixos.org/) to manage dependencies and ensure reproducibility, making your development process more robust.
|
**Dependency Management**: We use the [Nix package manager](https://nixos.org/) to manage dependencies and ensure reproducibility, making your development process more robust.
|
||||||
|
|
||||||
## Supported Operating Systems
|
## Supported Operating Systems
|
||||||
|
|
||||||
- Linux
|
- Linux
|
||||||
- macOS
|
- macOS
|
||||||
|
|
||||||
@@ -33,8 +34,10 @@ Let's get your development environment up and running:
|
|||||||
```
|
```
|
||||||
|
|
||||||
3. **Add direnv to your shell**:
|
3. **Add direnv to your shell**:
|
||||||
|
|
||||||
- Direnv needs to [hook into your shell](https://direnv.net/docs/hook.html) to work.
|
- Direnv needs to [hook into your shell](https://direnv.net/docs/hook.html) to work.
|
||||||
You can do this by executing following command:
|
You can do this by executing following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
echo 'eval "$(direnv hook zsh)"' >> ~/.zshrc && echo 'eval "$(direnv hook bash)"' >> ~/.bashrc && eval "$SHELL"
|
echo 'eval "$(direnv hook zsh)"' >> ~/.zshrc && echo 'eval "$(direnv hook bash)"' >> ~/.bashrc && eval "$SHELL"
|
||||||
```
|
```
|
||||||
@@ -119,6 +122,8 @@ Let's set up your Git workflow to collaborate effectively:
|
|||||||
```bash
|
```bash
|
||||||
merge-after-ci
|
merge-after-ci
|
||||||
```
|
```
|
||||||
|
- If it fails and says something along the lines off `[ERROR] fail-on-change` then the formatter complained.
|
||||||
|
Execute `nix fmt` from the project root by hand and then make a new git commit. Afterwards redo step 3 and it should work.
|
||||||
|
|
||||||
4. **Review Your Pull Request**:
|
4. **Review Your Pull Request**:
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,6 @@ from fastapi import APIRouter
|
|||||||
router = APIRouter()
|
router = APIRouter()
|
||||||
|
|
||||||
|
|
||||||
@router.get("/health", include_in_schema=False)
|
@router.get("/health", include_in_schema=True)
|
||||||
async def health() -> str:
|
async def health() -> str:
|
||||||
return "OK"
|
return "OK"
|
||||||
|
|||||||
@@ -34,6 +34,8 @@
|
|||||||
, gnupg
|
, gnupg
|
||||||
, e2fsprogs
|
, e2fsprogs
|
||||||
, mypy
|
, mypy
|
||||||
|
, sqlalchemy
|
||||||
|
, websockets
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
|
||||||
@@ -41,6 +43,8 @@ let
|
|||||||
argcomplete # optional dependency: if not enabled, shell completion will not work
|
argcomplete # optional dependency: if not enabled, shell completion will not work
|
||||||
fastapi
|
fastapi
|
||||||
uvicorn # optional dependencies: if not enabled, webui subcommand will not work
|
uvicorn # optional dependencies: if not enabled, webui subcommand will not work
|
||||||
|
sqlalchemy
|
||||||
|
websockets
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestDependencies = runtimeDependencies ++ dependencies ++ [
|
pytestDependencies = runtimeDependencies ++ dependencies ++ [
|
||||||
|
|||||||
Reference in New Issue
Block a user