-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dfbf190
commit 2940049
Showing
50 changed files
with
1,030 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
skips: | ||
- B101 # Ignore defensive `assert`s (especially useful for mypy) | ||
- B404 # Ignore warnings about importing subprocess | ||
- B603 # Ignore warnings about calling subprocess.Popen without shell=True | ||
- B607 # Ignore warnings about calling subprocess.Popen without a full path to executable |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve Black's quality | ||
title: "" | ||
labels: "T: bug" | ||
assignees: "" | ||
--- | ||
|
||
<!-- | ||
Please make sure that the bug is not already fixed either in newer versions or the | ||
current development version. To confirm this, you have two options: | ||
1. Update pynball version if a newer release exists: `pip install -U pynball` | ||
2. Or run _pynball_ on your machine: | ||
- create a new virtualenv (make sure it's the same Python version); | ||
- clone this repository; | ||
- run `pip install -e .[d]`; | ||
- run `pip install -r requirements.txt` | ||
- make sure it's sane by running `python -m pytest`; and | ||
- run `pynball` like you did last time. | ||
--> | ||
|
||
**Describe the bug** | ||
|
||
<!-- A clear and concise description of what the bug is. --> | ||
|
||
**To Reproduce** | ||
|
||
<!-- | ||
Minimal steps to reproduce the behavior with source code and pynball's configuration. | ||
--> | ||
|
||
For example, take this code: | ||
|
||
```python | ||
... | ||
``` | ||
|
||
And run it with these arguments: | ||
|
||
```sh | ||
$ | ||
``` | ||
|
||
The resulting error is: | ||
|
||
> ... | ||
**Expected behavior** | ||
|
||
<!-- A clear and concise description of what you expected to happen. --> | ||
|
||
**Environment** | ||
|
||
<!-- Please complete the following information: --> | ||
|
||
- pynball's version: <!-- e.g. [main] --> | ||
- OS and Python version: <!-- e.g. [Linux/Python 3.7.4rc1] --> | ||
|
||
**Additional context** | ||
|
||
<!-- Add any other context about the problem here. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!-- Hello! Thanks for submitting a PR. To help make things go a bit more | ||
smoothly we would appreciate that you go through this template. --> | ||
|
||
### Description | ||
|
||
<!-- Good things to put here include: reasoning for the change (please link | ||
any relevant issues!) --> | ||
|
||
### Checklist - did you ... | ||
|
||
<!-- If any of the following items are not relevant for your contribution | ||
please still tick them, so we know you've gone through the checklist. | ||
All user-facing changes should get an entry. Otherwise, signal to me that | ||
this should get the magical label to silence the CHANGELOG entry check. | ||
Tests are required for bugfixes and new features. Documentation changes | ||
are necessary for formatting and most enhancement changes. --> | ||
|
||
- [ ] Add a CHANGELOG entry if necessary? | ||
- [ ] Add / update tests if necessary? | ||
- [ ] Add new / update outdated documentation? |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# https://docs.github.com/en/actions | ||
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | ||
name: ci-cd | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
ci: | ||
# Step 1. Set up operating system | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Step 2. Set up Python 3.9 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
# Step 3. Check-out repository so we can access its contents | ||
- uses: actions/checkout@v2 | ||
# Step 4. Install poetry | ||
- uses: snok/install-poetry@v1 | ||
# Step 5. Install our pycounts package | ||
- name: Install package | ||
run: poetry install | ||
# Step 6. Run tests for pycounts | ||
- name: Test with pytest | ||
run: poetry run pytest tests/ --cov=pycounts --cov-report=xml | ||
# Step 7. Use Codecov to track coverage | ||
- uses: codecov/codecov-action@v2 | ||
with: | ||
file: ./coverage.xml # coverage report | ||
fail_ci_if_error: true # terminate workflow if there's an error | ||
# Step 8. Build documentation | ||
- name: Build documentation | ||
run: poetry run make html --directory docs/ | ||
cd: | ||
# Only run this job if the "ci" job passes | ||
needs: ci | ||
# Only run this job if new work is pushed to "main" | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
# Step 1. Set up operating system | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Step 2. Set up Python 3.9 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
# Step 3. Check-out repository so we can access its contents | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
# Step 4. Use PSR to make release | ||
- name: Python Semantic Release | ||
run: | | ||
pip install python-semantic-release | ||
git config user.name github-actions | ||
git config user.email github-actions@github.com | ||
semantic-release publish | ||
# Step 5. Publish to TestPyPI | ||
- uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
skip_existing: true | ||
# Step 6. Test install from TestPyPI | ||
- name: Test install from TestPyPI | ||
run: | | ||
pip install \ | ||
--index-url https://test.pypi.org/simple/ \ | ||
--extra-index-url https://pypi.org/simple \ | ||
pycounts | ||
# Step 7. Publish to PyPI | ||
- uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
skip_existing: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CHANGELOG.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
--- | ||
Credits | ||
--- | ||
# Credits | ||
|
||
# Development Lead | ||
## Development Lead | ||
|
||
- Stephen R A King \<stephen.ra.king@gmail.com\> | ||
|
||
# Maintainer | ||
## Maintainer | ||
|
||
- Stephen R A King \<stephen.ra.king@gmail.com\> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Changelog | ||
|
||
<!--next-version-placeholder--> | ||
|
||
## 1.0.2 (2022-05-31) | ||
|
||
### First Release of 'pynball' | ||
|
||
|
||
|
||
<!-- Markdown link & img dfn's --> | ||
|
||
[github](https://github.com/Stephen-RA-King/pynball) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM python:3.9-alpine | ||
WORKDIR /apps/pynball/ | ||
COPY src/pynball/. . | ||
COPY requirements/development.txt . | ||
RUN ["pip", "install", "-r", "development.txt"] | ||
CMD ["python", "pynball.py"] |
Oops, something went wrong.