Un modèle de script autoportant orienté bonnes pratiques 🐍 ✨
- Python 75.2%
- Makefile 24.8%
Do not use `print()` anymore in the script to print stuff on STDOUT, use `logger.info()` instead. If script is run in crontab, it loggs to syslog. |
||
|---|---|---|
| .gitlab-ci.yml | ||
| LICENSE.md | ||
| main.py | ||
| Makefile | ||
| pyproject.toml | ||
| README.md | ||
| requirements-dev.txt | ||
Python Boilerplate
Stuff used for a new python project 🐍
💡 Idea
- Keep in mind the Standalone Python script proposed by Vincent Bernat ( 🇫🇷 | 🇬🇧 ).
- Ease new project start
- Give a try to the GitLab group organisation
🚀 Use quick-start
Get the source & edit settings:
git clone git@<GIT REPO URL>:<GIT REPO PATH>.git && cd <GIT REPO NAME>
cp client.sample.py client.py
${EDITOR} client.py
Set up environment & run help:
mkdir ~/.venvs && python3 -m venv ~/.venvs/<GIT REPO NAME>
source ~/.venvs/<GIT REPO NAME>/bin/activate
pip install -r requirements.txt
./main.py -h
🚧 Development
🚀 Quick-start
- Built with
Python 3.8 - Code linting with
flake8,pylint,black&pydocstyle. - Install development tools:
pip install -r requirements-dev.txt
- A
Makefilewith tools : runmake helpto have a look - Use the
pre-commitgit hookmake init-pre-commit
📌 Dependences
Details in requirements.txt & requirements-dev.txt
🤝 Contributing
- Roadmap ➡️ project kanban
- Question, suggestion, issue ➡️ project issues
- Code submission ➡️ project merge request