mirror of
https://github.com/jnstockley/python-starter.git
synced 2026-06-05 11:38:01 -05:00
A starter project for quickly setting up new Python apps
- Python 39.3%
- Shell 35.4%
- Dockerfile 25.3%
|
Some checks failed
Lint, Test, and Deploy / Lint (push) Has been cancelled
Lint, Test, and Deploy / Test (push) Has been cancelled
Trivy Security Scan / Scan (push) Has been cancelled
Lint, Test, and Deploy / Publish to PyPI (push) Has been cancelled
Lint, Test, and Deploy / Deploy Docker Image (push) Has been cancelled
Update astral-sh/setup-uv action to v8.2.0 |
||
|---|---|---|
| .github/workflows | ||
| scripts | ||
| src | ||
| tests | ||
| .dockerignore | ||
| .gitignore | ||
| .python-version | ||
| .yamllint | ||
| compose-dev.yml | ||
| compose.yml | ||
| Dockerfile | ||
| LICENSE | ||
| Main Branch Protection.json | ||
| pyproject.toml | ||
| README.md | ||
| renovate.json | ||
| sample.env | ||
| uv.lock | ||
Python Starter
Steps to set up
- Create a new repository in GitHub using this repository as a template
- Generate Docker Hub PAT (Personal Access Token)
- Create an Environment in GitHub with the following secrets
- DOCKER_USERNAME (Docker Hub username)
- DOCKER_PASSWORD (Docker Hub PAT)
- Create a Docker Hub repository with the same name as the GitHub repository
- Update
assigneesinrenovate.jsonwith your GitHub username - Set up code-cove and make sure it has access to this repository
- Setup branch protection rules
- Set
Enrforcment StatustoEnabled - Make sure
Target branchesset tomainor default branch - Ensure these
Branch rulesare selectedRestrict deletionsRequire status checks to passwith these checksLintTest
Block force pushes
- Set
- Create a PyPi
Trusted Publisher - Ensure the name in
pyproject.tomlmatches the name of the package on PyPi - Make sure the following linters are installed externally of the project
- yamllint
- shellcheck
- shfmt
- node (npx/dclint)
TODO
- Handle GitHub pre-release
- Update PYTHONPATH with src folder
- Add custom user to Dockerfile
- Fix Dockerfile
- Fix health check
- Fix version number