Skip to content

Personal projects all in one location

License

Notifications You must be signed in to change notification settings

BurnySc2/monorepo

Repository files navigation

discord_bot fastapi_server stream_announcer python_examples earthly_checks

Monorepo

My monorepo for various tools and showcases

Development

Pre-requisites

VScode

Run VScode task called Install requirements or alternatively run sh .vscode/install_requirements.sh or alternatively run poetry install in the python projects or npm install in the frontend projects.

Open the Command Palette and Workspaces: Add Folder to Workspace... and select the folders you want to edit.

Now set up the correct interpreter path (may have to navigate the absolute path, on linux that is ~/.cache/pypoetry/virtualenvs/...). The running the command poetry env info --path in each project shows where the environment was installed to.

VS code

TODO

Check dependencies

To avoid packages with large packages, we can use pipdeptree

poetry run pipdeptree > deps.txt

Install and run pre-commit hook on all staged files

poetry run pre-commit install
poetry run pre-commit run --all-files --verbose --hook-stage push

This runs pylint, mypy, pytest tests, apply autoformatter yapf

Autoformat all files

earthly +format

Recommended websites and tools:

Convert JSON API response to types Convert curl to python requests