playin around with flasssssssk
- create virtual env
python3 -m venv env
- activate virtual env
source env/bin/activate
- can now type
python
instead ofpython3
- deactivate virtual env
deactivate
- install dependencies
pip install -r requirements.txt
- install pre-commit hooks
pre-commit install
- make sure your venv is activated when you run this
- populate your
.env
file- run
cp .env-template .env
to get a.env
file populated with keys that need their values added
- run
flask --app app run --debug
- try
chrome://net-internals/#sockets
to clear local browser data for that url
- install pre-commit hooks
pre-commit install
- make sure your venv is activated when you run this
- do this every time you update the
.pre-commit-config.yaml
file
- gives yaml configurable pre-commit hook to add processers/parsers on commit
- GitHub
- code formatter based on PEP8 rules
- GitHub
- code formatter that sorts imports based on PEP8 rules
- GitHub
- linter
- GitHub
- static typing
- GitHub
- env var management
- GitHub