https://github.com/sloppycoder/lm
https://github.com/sloppycoder/lm
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sloppycoder/lm
- Owner: sloppycoder
- Created: 2024-03-18T10:07:50.000Z (about 2 years ago)
- Default Branch: develop
- Last Pushed: 2024-03-20T09:41:09.000Z (about 2 years ago)
- Last Synced: 2025-08-25T18:49:09.591Z (9 months ago)
- Language: Dockerfile
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Welcome to your Python project
This project is set up Python project with dev tooling pre-configured
* black
* flake8
* isort
* mypy
* VS Code support
## Setup
The easiest way to get started is use [Visual Studio Code with devcontainer](https://code.visualstudio.com/docs/devcontainers/containers)
The more traditional way is to install python 3.11 and [poetry](https://python-poetry.org/), then
```shell
# create virtualenv
poetry shell
# install dependencies
poetry install --no-root --with linting
```
## Develop the code for the stack
```shell
# update your DATABASE_URL is used
# create database and assign proper privileges to the user
# e.g.
# create database mydb;
# grant all privileges on database mydb to me;
nano .env
# run alembic migration
alembic upgrade head
# run unit tests
pytest
```
## generate code using config file without interactive input
Create a [config file](sample_prog.json) with options to use, then
```shell
cookiecutter gh:vino9org/cookiecutter-python --config-file sample_prog.json --no-input
```