GitHub - crusaderky/python_project_template: A template with all the boilerplate for a Python project with CI integration (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
TEMPLATE
TODO
This project contains all the boilerplate for initialising a new Python project on github. It includes:
- Automated tests with py.test
- Enforced static code linting and validation with ruff, black and mypy, encapsulated by pre-commit
- Sphinx documentation framework
- Integration with github workflows, codecov.io, and readthedocs
- CI tests against multiple versions of Python (Anaconda distribution) and on multiple OSs (Linux, Windows, and MacOS)
- Explicit tests for minimum supported dependencies versions
- Automated versioning with setuptools-scm
- Step-by-step guide to release to pypi and conda-forge
Full documentation at http://python_project_template.readthedocs.io/
Usage
- Copy all the files into your project (don't forget the hidden files!)
- Replace all TEMPLATE tags with your project name (also in file and directory names)
- Search for all TODO tags and replace them as needed
- Integrate with readthedocs, Travis, and AppVeyor and obtain successful builds
- Replace the TEMPLATE directory with your own python files and tests.
Credits
Forked from https://github.com/pydata/xarray
Badges
TODO replace crusaderky/python_project_template with {github user}/{project name}. You may want to move this section to the top of the page!