pyright-fix
All checks were successful
deploy / deploy (push) Successful in 2m16s

This commit is contained in:
Untone 2023-11-27 11:12:42 +03:00
parent fe60d625e5
commit 909ddbd79d
3 changed files with 15 additions and 6 deletions

3
.gitignore vendored
View File

@ -147,4 +147,5 @@ migration/content/**/*.md
*.csv *.csv
dev-server.pid dev-server.pid
backups/ backups/
poetry.lock poetry.lock
.venv

View File

@ -23,11 +23,13 @@ apt install redis nginx
``` ```
Then run nginx, redis and API server Then run nginx, redis and API server
```
redis-server ```shell
poetry env use 3.12 mkdir .venv
poetry install python3.12 -m venv .venv
poetry run python server.py dev poetry env use .venv/bin/python3.12
poetry update
poetry run python server.py
``` ```
## Services ## Services

View File

@ -68,3 +68,9 @@ select = ["E4", "E7", "E9", "F"]
ignore = [] ignore = []
line-length = 120 line-length = 120
target-version = "py312" target-version = "py312"
[tool.pyright]
venvPath = "."
venv = ".venv"
include = ["."]