Base Python package/application template.
Tools to install: git, pre-commit, poetry
You can use this playbook for automated tools installation(Ubuntu only).
pip install git+https://github.com/agblox/template-python.git
template-python --helpRun make for list all available targets.
git clone git@github.com:agblox/template-python.git
cd template-python
make init-
Create a new repo from this template.
-
Add
automationteam to the repo admins -
Set branch protection rules for
masterbranch -
Enable auto-merge and branch deletion after merge
- Edit CODEOWNERS file.
- Find all
replace-me,template_pythonandtemplate-pythonstrings in repo files or files/dirs names and replace it with actual data. - Open
pyproject.tomland replace version of your package to the0.0.1(line 6). - Open
CHANGELOG.mdand delete all after<!--next-version-placeholder-->line. - Delete
Template usagesections of this file. - Execute
make replace-meand replace all highlights with actual data. - ❗ Write all details about your repo in the
Aboutsection.
Create your first pull request and wait till all checks will be passed. Open repo Settings and choice Branches tab. Go to the master branch protection rules and edit Require status checks section.
- If you are not familiar with
poertyand other tools - read our Requirements for Python code Wiki article. - If you have a questions about secrets check hook - read this section from our
SecretsWiki article.
releaseGitHub workflow. Release commit types:fixandfeat.
make testfor unit tests
checksGitHub workflow triggered by PR.
- Git workflow - GitHub flavor.
- Commit message style - Conventional Commits.





