An open API service indexing awesome lists of open source software.

https://github.com/beaverhouse/python-script-hub

Effort to increase productivity by using Python
https://github.com/beaverhouse/python-script-hub

python readme-generation testing

Last synced: 2 months ago
JSON representation

Effort to increase productivity by using Python

Awesome Lists containing this project

README

        



Logo


Effort to increase productivity by using Python




Bug Report
|
Request to HU-Lee



Python


Poetry


Pytest


License





## Description

Effort to increase productivity by using [Python][py].

**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.

[py]: https://www.python.org/
[blog]: https://github.com/BeaverHouse/blog
[wiki]: https://wiki.haulrest.me/


## Requirements

1. You need to install [Python 3.12][py312] and [Poetry][poetry] to manage the packages.
To install Poetry:

```
curl -sSL https://install.python-poetry.org | python3 -
```

2. 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 repositories
- `GH_PAT_PERSONAL` : Fine-grained access token for personal repositories

3. Configure [Codecov][codecov] to make code coverage analysis.
Delete the related code if unnecessary.


**Install packages**

```
poetry install
```

[poetry]: https://python-poetry.org/
[py312]: https://www.python.org/downloads/release/python-3120/
[codecov]: https://about.codecov.io/


## Getting started

**Make README**

```
python -m hub.making.readme
```

**Test**

```
python -m pytest --cov test
```


## OSS Notice

See the [OSS Notice | python-script-hub][oss-notice].

[oss-notice]: ./OSS.md


## Contributing

See the [CONTRIBUTING.md][contributing].

[contributing]: ./CONTRIBUTING.md