Skip to content

Commit

Permalink
Merge pull request #40 from viperior/feature/readme-improvements
Browse files Browse the repository at this point in the history
Documentation and testing improvements
  • Loading branch information
viperior authored May 6, 2022
2 parents 3fa4bba + e09eb74 commit 188cf09
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 2 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,22 @@

### New features

### Improvements

## [1.0.0](https://github.com/viperior/python-project-template/tree/v1.0.0) (2022-05-06)

### New features

* Configure the `setuptools` build tool by creating the required metadata files

### Improvements

* Move pylint usage from the pytest test suite to a GitHub Actions workflow
* Document universally important project aspects in readme (closes [#13][i13])
* Update reference to build.yaml file in badge URL (closes [#38][i38])

[i13]: https://github.com/viperior/python-project-template/issues/13
[i38]: https://github.com/viperior/python-project-template/issues/38

## [0.7.0](https://github.com/viperior/python-project-template/tree/v0.7.0) (2022-02-26)

Expand Down
48 changes: 46 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,39 @@
# python-project-template

This is a template for Python projects that includes automated test cases implemented using pytest.
This is a template for Python projects that provides a starting structure and a set of universally useful CI/CD configurations.

![build](https://github.com/viperior/python-project-template/actions/workflows/python-app.yml/badge.svg)
![build](https://github.com/viperior/python-project-template/actions/workflows/build.yml/badge.svg)

## What is this for?

This template can be used as a starting point for new Python projects to get up and running quickly with a standard set of CI/CD configurations and an organized project structure.

| Operation | Solution Choice |
| --------------------- | -------------------------------------------------------- |
| Linting | flake8, pylint |
| Testing | pytest |
| Building | setuptools |
| Dependency management | pip-tools, dependabot |
| Additional features | changelog, example MIT license, dependabot configuration |

## How do I build it?

```bash
python -m build
```

## How do I run it?

```bash
python -m pip install -r requirements.txt
python -m callable
```

## How do I test it?

```bash
python -m pytest
```

## Project structure

Expand All @@ -11,3 +42,16 @@ project_root
├───games_of_chance
└───tests
```

## Resources

- Using GitHub template repositories <https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template>
- GitHub Actions <https://docs.github.com/en/actions>
- pylint <https://pylint.pycqa.org/en/latest/>
- flake8 <https://flake8.pycqa.org/en/latest/>
- pytest <https://docs.pytest.org/en/7.1.x/>
- setuptools <https://pypi.org/project/setuptools/>
- pip-tools <https://github.com/jazzband/pip-tools>
- dependabot <https://github.com/dependabot/dependabot-core>
- Changelog generation <https://github.com/github-changelog-generator/github-changelog-generator>
- MIT license <https://opensource.org/licenses/MIT>

0 comments on commit 188cf09

Please sign in to comment.