Effort to increase productivity by using Python
Bug Report
|
Request to HU-Lee
Effort to increase productivity by using Python.
Current features
Feature | Location |
---|---|
Test repository README | test/test_content.py::test_repo_readme |
Test README template | test/test_repo.py::test_readme_template |
Test repository settings* | test/test_repo.py::test_repo_settings |
README generation | hub.making.readme |
*: GitHub API does not support entire access to its features.
-
You need to install Python 3.12 and Poetry to manage the packages.
To install Poetry:curl -sSL https://install.python-poetry.org | python3 -
-
You need to set environment variables.
If you want to fork the repository and run GitHub Actions, set them as a repository secret too.GH_PAT_ORGANIZATION
: Fine-grained access token for organization repositoriesGH_PAT_PERSONAL
: Fine-grained access token for personal repositories
-
Configure Codecov to make code coverage analysis.
Delete the related code if unnecessary.
Install packages
poetry install
Make README
python -m hub.making.readme
Test
python -m pytest --cov test
See the OSS Notice | python-script-hub.
See the CONTRIBUTING.md.