Lev's Personal Blog
levlaz/blog (for lack of a better name) is a simple, ugly, single user blogging application written in Python and Flask.
- Python 3.5.2
- SQLite 3.11.0
- Python modules listed in
requirements.txt
You can install all dependencies (including testing and dev-only dependencies) by running pip install -r dev-requirements.txt
. I suggest using a virtualenv in order to not pollute your global python.
This project follows the PEP 8 style guide for Python code. CI tests will fail if your code does not adhere to this spec. You can test to make sure that all of your code is PEP 8 compliant by running flake8 blog
from the project root.
This project aims to have a robust test suite and 100% code coverage. In order to run the existing tests you can run export BLOG_PATH=$(pwd) && coverage run --source blog -m unittest tests/**.py
from the project root.
If you wish to test a single test from the tests/ directory then you can run export BLOG_PATH=$(pwd) && python -m unittest tests/$SINGLE_FILE.py
If you add new code to this project, please write the corresponding unit and integration tests and ensure that they pass.