cookiecutter hatch pypackage
1.0.0
尖端 Python 套件的 Cookiecutter 範本: Hatch
、 ruff
、 mypy
、 GitHub Actions
等等!
細節 | |
特徵 |
Hatch
包管理v0.9
ruff
取代 isort、flake8、black 等進行絨毛和格式化。 mypy
進行類型檢查deptry
檢查未使用的、缺失的和傳遞的依賴項pytest
和可選的 asyncio 設定進行單元測試。 dependabot
、 release-drafter
、 labeler
、 publish to PYPI workflows
、 publish to test PYPI workflows
等。 src
資料夾下,避免了許多常見錯誤。 生成項目:
該專案將使用pipx
在隔離環境中安裝hatch
。在執行以下命令之前,請確保您已安裝pipx
。
cookiecutter https://github.com/Aviksaikat/cookiecutter-hatch-pypackage
生成器最後會自動呼叫hatch env create & git init
。
然後,為了使GitHub Actions pipelines
正常工作,您應該:
Codecov
中啟用 GitHub 儲存庫。CODECOV_TOKEN
。可以在對應項目的Codecov設定中找到。GitHub Actions
來源啟用GitHub Pages
。PyPI
進行測試的選項。cruft 是 Cookiecutter 之上的一層,可讓您在產生項目後從範本更新項目。
cruft create https://github.com/Aviksaikat/cookiecutter-hatch-pypackage
該項目根據 MIT 許可條款獲得許可。