Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bswck committed Dec 18, 2023
1 parent d0c5241 commit 5245df6
Show file tree
Hide file tree
Showing 28 changed files with 207 additions and 159 deletions.
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
_commit: cd034ea
_commit: 65cc40e
_src_path: gh:bswck/skeleton
author_username: bswck
docs: true
Expand Down
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# {{'project/.github/#% if author_username == "bswck" %#FUNDING.yml#% endif %#'|skeleton_notice(snref=snref, srev=srev)|custom_indent("# ")}}

github: "bswck"
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file was generated from bswck/skeleton@65cc40e.
# Instead of changing this particular file, you might want to alter the template:
# https://github.com/bswck/skeleton/tree/65cc40e/project/.github/ISSUE_TEMPLATE/bug.yml.jinja

# docs https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-issue-forms
# https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema

Expand Down
6 changes: 5 additions & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
blank_issues_enabled: false
# This file was generated from bswck/skeleton@65cc40e.
# Instead of changing this particular file, you might want to alter the template:
# https://github.com/bswck/skeleton/tree/65cc40e/project/.github/ISSUE_TEMPLATE/config.yml.jinja

blank_issues_enabled: true
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file was generated from bswck/skeleton@65cc40e.
# Instead of changing this particular file, you might want to alter the template:
# https://github.com/bswck/skeleton/tree/65cc40e/project/.github/ISSUE_TEMPLATE/functionality.yml.jinja

# docs https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-issue-forms
# https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema

Expand Down
File renamed without changes.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "gitsubmodule"
directory: "/"
schedule:
interval: "daily"
5 changes: 5 additions & 0 deletions .github/workflows/documentation-links.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# This file was generated from bswck/skeleton@65cc40e.
# Instead of changing this particular file, you might want to alter the template:
# https://github.com/bswck/skeleton/tree/65cc40e/project/.github/workflows/%23%25%20if%20docs%20%25%23documentation-links.yml%23%25%20endif%20%25%23.jinja

name: "readthedocs/actions"
on:
pull_request_target:
types:
- "opened"
paths:
- "docs/**"
- "CHANGELOG.md"

permissions:
pull-requests: "write"
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file was generated from bswck/skeleton@65cc40e.
# Instead of changing this particular file, you might want to alter the template:
# https://github.com/bswck/skeleton/tree/65cc40e/project/.github/workflows/lint.yml.jinja

name: "Lint"

on: ["push"]
Expand All @@ -13,6 +17,6 @@ jobs:
python-version: "3.8"
- name: "Install Ruff"
run: |
pipx install ruff
pip install ruff
- name: "Analyze the code with Ruff"
run: "ruff ."
6 changes: 5 additions & 1 deletion .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file was generated from bswck/skeleton@65cc40e.
# Instead of changing this particular file, you might want to alter the template:
# https://github.com/bswck/skeleton/tree/65cc40e/project/.github/workflows/mypy.yml.jinja

name: "Mypy"

on: ["push"]
Expand All @@ -13,7 +17,7 @@ jobs:
python-version: "3.8"
- name: "Install the project"
run: |
pipx install poetry
pip install poetry
poetry install
- name: "Type-check with mypy"
run: >
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file was generated from bswck/skeleton@65cc40e.
# Instead of changing this particular file, you might want to alter the template:
# https://github.com/bswck/skeleton/tree/65cc40e/project/.github/workflows/%23%25%20if%20publish_on_pypi%20%25%23release.yml%23%25%20endif%20%25%23.jinja

name: "PyPI"

on:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/smokeshow.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file was generated from bswck/skeleton@65cc40e.
# Instead of changing this particular file, you might want to alter the template:
# https://github.com/bswck/skeleton/tree/65cc40e/project/.github/workflows/%23%25%20if%20public%20%25%23smokeshow.yml%23%25%20endif%20%25%23.jinja

name: "Smokeshow"

on:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file was generated from bswck/skeleton@65cc40e.
# Instead of changing this particular file, you might want to alter the template:
# https://github.com/bswck/skeleton/tree/65cc40e/project/.github/workflows/%23%25%20if%20test_suite%20%25%23test.yml%23%25%20endif%20%25%23.jinja

name: "Tests"

on: ["push"]
Expand All @@ -17,7 +21,7 @@ jobs:
python-version: "${{matrix.python-version}}"
- name: "Install the project"
run: |
pipx install poetry
pip install poetry
poetry install
- name: "Run tests"
run: "poetry run coverage run -m pytest -v ."
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file was generated from bswck/skeleton@65cc40e.
# Instead of changing this particular file, you might want to alter the template:
# https://github.com/bswck/skeleton/tree/65cc40e/project/.gitignore.jinja

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
15 changes: 8 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# This file was generated from bswck/skeleton@65cc40e.
# Instead of changing this particular file, you might want to alter the template:
# https://github.com/bswck/skeleton/tree/65cc40e/project/%23%25%20if%20use_precommit%20%25%23.pre-commit-config.yaml%23%25%20endif%20%25%23.jinja

repos:
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: "v4.5.0"
hooks:
- id: "check-yaml"
name: "Check YAML files"
- id: "trailing-whitespace"
name: "Trim trailing whitespaces"
- repo: "https://github.com/astral-sh/ruff-pre-commit"
rev: "v0.1.5"
hooks:
Expand All @@ -19,6 +16,10 @@ repos:
- repo: "https://github.com/python-poetry/poetry"
rev: "1.7.0"
hooks:
- id: "poetry-lock"
stages: ["push"]
name: "Run Poetry lock hook"
args: ["--no-update"]
- id: "poetry-check"
stages: ["push"]
name: "Run Poetry check hook"
4 changes: 4 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file was generated from bswck/skeleton@65cc40e.
# Instead of changing this particular file, you might want to alter the template:
# https://github.com/bswck/skeleton/tree/65cc40e/project/%23%25%20if%20docs%20%25%23.readthedocs.yml%23%25%20endif%20%25%23.jinja
#
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
version: 2
Expand Down
30 changes: 20 additions & 10 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
This file was generated from bswck/skeleton@65cc40e.
Instead of changing this particular file, you might want to alter the template:
https://github.com/bswck/skeleton/tree/65cc40e/fragments/contributing.md
-->
# Contributing to [runtime_generics](https://github.com/bswck/runtime_generics) 🎉
Contributions are very welcome. 🚀

Expand Down Expand Up @@ -25,11 +30,25 @@ If you are proposing a feature:
- Remember that this is a volunteer-driven project, and that contributions are
welcome! ✨

## Get started! 🕹️
## Pull Request guidelines 📝
1. Initially mark the PR as a draft, so that the maintainers know that you are making final touches.

1. Ensure that the [test coverage](https://coverage-badge.samuelcolvin.workers.dev/redirect/bswck/runtime_generics) is not decreased. If you add a new feature, please add tests for it. [Read more about coverage](https://coverage.readthedocs.io/en/latest/index.html).

1. Ensure that all GitHub checks pass. If they are disabled in your PR, ping the maintainers to request enabling them.

1. Don't forget to link the relevant issue(s) in the PR description and describe the changes you made.

# Get started! 🕹️

Ready to contribute? Here's a quick guide on how to set up runtime_generics and make a change.


<!--
This section was generated from bswck/skeleton@65cc40e.
Instead of changing this particular file, you might want to alter the template:
https://github.com/bswck/skeleton/tree/65cc40e/fragments/guide.md
-->

> [!Note]
> If you use Windows, it is highly recommended to complete the installation in the way presented below through [WSL2](https://learn.microsoft.com/en-us/windows/wsl/install).
Expand Down Expand Up @@ -95,12 +114,3 @@ Ready to contribute? Here's a quick guide on how to set up runtime_generics and
1. Submit a pull request through the GitHub website.
## Pull Request guidelines 📝
1. Initially mark the PR as a draft, so that the maintainers know that you are making final touches.
1. Ensure that the [test coverage](https://coverage-badge.samuelcolvin.workers.dev/redirect/bswck/runtime_generics) is not decreased. If you add a new feature, please add tests for it. [Read more about coverage](https://coverage.readthedocs.io/en/latest/index.html).
1. Ensure that all GitHub checks pass. If they are disabled in your PR, ping the maintainers to request enabling them.
1. Don't forget to link the relevant issue(s) in the PR description and describe the changes you made.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,9 @@ my_generic.whoami() # I am MyGeneric[int]
```

# Installation
If you want to…



## …use this tool in your project 💻
You might simply install it with pip:

```shell
Expand All @@ -86,8 +84,13 @@ If you use [Poetry](https://python-poetry.org/), then run:
poetry add runtime-generics
```

## …contribute to [runtime_generics](https://github.com/bswck/runtime_generics) 🚀
## For contributors

<!--
This section was generated from bswck/skeleton@65cc40e.
Instead of changing this particular file, you might want to alter the template:
https://github.com/bswck/skeleton/tree/65cc40e/fragments/guide.md
-->

> [!Note]
> If you use Windows, it is highly recommended to complete the installation in the way presented below through [WSL2](https://learn.microsoft.com/en-us/windows/wsl/install).
Expand Down
4 changes: 4 additions & 0 deletions changes/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# This file was generated from bswck/skeleton@65cc40e.
# Instead of changing this particular file, you might want to alter the template:
# https://github.com/bswck/skeleton/tree/65cc40e/project/changes/.gitignore.jinja

!.gitignore
30 changes: 20 additions & 10 deletions docs/contributing.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

<!--
This file was generated from bswck/skeleton@65cc40e.
Instead of changing this particular file, you might want to alter the template:
https://github.com/bswck/skeleton/tree/65cc40e/fragments/contributing.md
-->
# Contributing to [runtime_generics](https://github.com/bswck/runtime_generics) 🎉
Contributions are very welcome. 🚀

Expand Down Expand Up @@ -26,11 +31,25 @@ If you are proposing a feature:
- Remember that this is a volunteer-driven project, and that contributions are
welcome! ✨

## Get started! 🕹️
## Pull Request guidelines 📝
1. Initially mark the PR as a draft, so that the maintainers know that you are making final touches.

1. Ensure that the [test coverage](https://coverage-badge.samuelcolvin.workers.dev/redirect/bswck/runtime_generics) is not decreased. If you add a new feature, please add tests for it. [Read more about coverage](https://coverage.readthedocs.io/en/latest/index.html).

1. Ensure that all GitHub checks pass. If they are disabled in your PR, ping the maintainers to request enabling them.

1. Don't forget to link the relevant issue(s) in the PR description and describe the changes you made.

# Get started! 🕹️

Ready to contribute? Here's a quick guide on how to set up runtime_generics and make a change.


<!--
This section was generated from bswck/skeleton@65cc40e.
Instead of changing this particular file, you might want to alter the template:
https://github.com/bswck/skeleton/tree/65cc40e/fragments/guide.md
-->

!!! Note
If you use Windows, it is highly recommended to complete the installation in the way presented below through [WSL2](https://learn.microsoft.com/en-us/windows/wsl/install).
Expand Down Expand Up @@ -96,12 +115,3 @@ Ready to contribute? Here's a quick guide on how to set up runtime_generics and
1. Submit a pull request through the GitHub website.
## Pull Request guidelines 📝
1. Initially mark the PR as a draft, so that the maintainers know that you are making final touches.
1. Ensure that the [test coverage](https://coverage-badge.samuelcolvin.workers.dev/redirect/bswck/runtime_generics) is not decreased. If you add a new feature, please add tests for it. [Read more about coverage](https://coverage.readthedocs.io/en/latest/index.html).
1. Ensure that all GitHub checks pass. If they are disabled in your PR, ping the maintainers to request enabling them.
1. Don't forget to link the relevant issue(s) in the PR description and describe the changes you made.
9 changes: 6 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@
Reuse type arguments explicitly passed at runtime to a generic class before instantiating.

# Installation
If you want to…



## …use this tool in your project 💻
You might simply install it with pip:

```shell
Expand All @@ -28,8 +26,13 @@ If you use [Poetry](https://python-poetry.org/), then run:
poetry add runtime-generics
```

## …contribute to [runtime_generics](https://github.com/bswck/runtime_generics) 🚀
## For contributors

<!--
This section was generated from bswck/skeleton@65cc40e.
Instead of changing this particular file, you might want to alter the template:
https://github.com/bswck/skeleton/tree/65cc40e/fragments/guide.md
-->

!!! Note
If you use Windows, it is highly recommended to complete the installation in the way presented below through [WSL2](https://learn.microsoft.com/en-us/windows/wsl/install).
Expand Down
4 changes: 4 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file was generated from bswck/skeleton@65cc40e.
# Instead of changing this particular file, you might want to alter the template:
# https://github.com/bswck/skeleton/tree/65cc40e/project/%23%25%20if%20docs%20%25%23mkdocs.yml%23%25%20endif%20%25%23.jinja

site_name: "runtime_generics"
site_description: "Reuse type arguments explicitly passed at runtime to a generic class before instantiating."
site_url: "https://runtime-generics.readthedocs.io/en/latest/"
Expand Down
Empty file added playground/.gitkeep
Empty file.
4 changes: 2 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5245df6

Please sign in to comment.