python-template
pinger-bot teached me, that rewriting something for third time is not fun. This is why I generally try to create a new project using some new shiny technology instead of rewriting old project again.
But quickly I found a problem in such an approach: configs. I needed my black, isort, etc. configs (preferably synced) at all my projects. And I found a solution - template.
Cookiecutter is an incredible project that allows to easily share configs between many projects and cruft keeps it everything synced. This is why even my smallest projects have a ton of files with configuration, and I love it!
Technologies that I have used here:
- cookiecutter - for easy template creation. For example, I can run one command and get a fully configured project in no time. Not even talking that cookiecutter supports Jinja to optionally turn on and off some features (like i18n).
- lice - for generating the project license. I just input any license I want during the project creation, and it automatically fills
LICENSEfile. - cruft - for auto-updating template.
And here are technologies used in a generated project:
- OmegaConf - really convenient tool for keeping configuration in YAML files. As an ex-minecraft server admin, I am really used to YAML.
- loguru - for logging that just works from the box. For some time, I didn't even configure it.
- mypy - linter for static typing in Python. Even though it sounds absurd for somes.
- poetry - advanced package manager. It is like someone rewrote
npmfor Python, the first time I saw this - I knew, it's love for an entire life. - GitHub Actions - for running automatic testing on every commit.
- pytest - for testing with easy-to-write unit-tests.
- Sphinx - for generating documentation from .RST files.
- documentation with Sphinx, Furo theme and ReadTheDocs.org for hosting.