Skip to content

Commit

Permalink
Initial import
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Oct 2, 2024
0 parents commit be0833e
Show file tree
Hide file tree
Showing 60 changed files with 4,818 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---

codecov:
notify:
after_n_builds: 24 # The number of test matrix+lint jobs uploading coverage
wait_for_ci: false

require_ci_to_pass: false

token: 26f4a393-24a9-48d9-8fa4-f1344d930846 # repo-scoped

comment:
require_changes: true

coverage:
range: 99.34..100
status:
patch:
default:
target: 100%
flags:
- pytest
project:
default:
target: 100%
lib:
flags:
- pytest
paths:
- propcache/
target: 97.91%
tests:
flags:
- pytest
paths:
- tests/
target: 99.87% # 100%
typing:
flags:
- MyPy
target: 100%

...
33 changes: 33 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[html]
show_contexts = true
skip_covered = false

[paths]
source =
propcache
*/lib/pypy*/site-packages/propcache
*/lib/python*/site-packages/propcache
*/Lib/site-packages/propcache

[report]
fail_under = 98.95
skip_covered = true
skip_empty = true
show_missing = true
exclude_also =
^\s*@pytest\.mark\.xfail

[run]
branch = true
cover_pylib = false
# https://coverage.rtfd.io/en/latest/contexts.html#dynamic-contexts
# dynamic_context = test_function # conflicts with `pytest-cov` if set here
parallel = true
plugins =
covdefaults
Cython.Coverage
relative_files = true
source =
.
source_pkgs =
propcache
134 changes: 134 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
---
name: 🐞 Bug Report
description: Create a report to help us improve.
labels:
- bug
body:
- type: markdown
attributes:
value: |
**Thanks for taking a minute to file a bug report!**
Verify first that your issue is not [already reported on
GitHub][issue search].
_Please fill out the form below with as many precise
details as possible._
[issue search]: ../search?q=is%3Aissue&type=issues
- type: checkboxes
id: terms
attributes:
label: Please confirm the following
description: |
Read the [aio-libs Code of Conduct][CoC] first. Check the existing issues
on the tracker. Take into account the possibility of your report
surfacing a security vulnerability.
[CoC]: ../../.github/blob/master/CODE_OF_CONDUCT.md
options:
- label: |
I agree to follow the [aio-libs Code of Conduct][CoC]
[CoC]: ../../.github/blob/master/CODE_OF_CONDUCT.md
required: true
- label: |
I have checked the [current issues][issue search] for duplicates.
[issue search]: ../search?q=is%3Aissue&type=issues
required: true
- label: >-
I understand this is open source software provided for free and
that I might not receive a timely response.
required: true
- label: |
I am positive I am **NOT** reporting a (potential) security
vulnerability, to the best of my knowledge. *(These must be shared by
submitting [this report form][vulnerability report form] instead, if
any hesitation exists.)*
[vulnerability report form]: ../security/advisories/new
required: true
- label: >-
I am willing to submit a pull request with reporoducers as xfailing test
cases or even entire fix. *(Assign this issue to me.)*
required: false
- type: textarea
attributes:
label: Describe the bug
description: >-
A clear and concise description of what the bug is.
validations:
required: true

- type: textarea
attributes:
label: To Reproduce
description: >-
Describe the steps to reproduce this bug.
placeholder: |
1. Have certain environment
2. Run given code snippet in a certain way
3. See some behavior described
validations:
required: true

- type: textarea
attributes:
label: Expected behavior
description: >-
A clear and concise description of what you expected to happen.
validations:
required: true

- type: textarea
attributes:
label: Logs/tracebacks
description: |
If applicable, add logs/tracebacks to help explain your problem.
Paste the output of the steps above, including the commands
themselves and their output/traceback etc.
render: python-traceback
validations:
required: true

- type: textarea
attributes:
label: Python Version
description: Attach your version of Python.
render: console
value: |
$ python --version
validations:
required: true
- type: textarea
attributes:
label: propcache Version
description: Attach your version of propcache.
render: console
value: |
$ python -m pip show propcache
validations:
required: true

- type: textarea
attributes:
label: OS
placeholder: >-
For example, Arch Linux, Windows, macOS, etc.
validations:
required: true

- type: textarea
attributes:
label: Additional context
description: |
Add any other context about the problem here.
Describe the environment you have that lead to your issue.
This includes proxy server and other bits that are related to your case.
...
37 changes: 37 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---

# yamllint disable rule:line-length
# Ref: https://help.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository#configuring-the-template-chooser
# yamllint enable rule:line-length
blank_issues_enabled: false # default: true
contact_links:
- name: 🔐 Security bug report 🔥
url: https://github.com/aio-libs/.github/security/policy
about: |
Please learn how to report security vulnerabilities here.
For all security related bugs, send an email
instead of using this issue tracker and you
will receive a prompt response.
For more information, see
https://github.com/aio-libs/.github/security/policy
- name: >-
[🎉 NEW 🎉]
🤷💻🤦 GitHub Discussions
url: https://github.com/aio-libs/propcache/discussions
about: >-
Please ask typical Q&A in the Discussions tab or on StackOverflow
- name: 🤷💻🤦 StackOverflow
url: https://stackoverflow.com/questions/tagged/aiohttp
about: >-
Please ask typical Q&A here or in the
Discussions tab @ https://github.com/aio-libs/propcache/discussions
- name: 💬 Gitter Chat
url: https://gitter.im/aio-libs/Lobby
about: Chat with devs and community
- name: 📝 Code of Conduct
url: https://github.com/aio-libs/.github/blob/master/CODE_OF_CONDUCT.md
about: ❤ Be nice to other members of the community. ☮ Behave.

...
62 changes: 62 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
name: 🚀 Feature request
description: Suggest an idea for this project.
labels:
- enhancement
body:
- type: markdown
attributes:
value: |
**Thanks for taking a minute to file a feature for propcache!**
Verify first that your feature request is not [already reported on
GitHub][issue search].
_Please fill out the form below with as many precise
details as possible._
[issue search]: ../search?q=is%3Aissue&type=issues
- type: textarea
attributes:
label: Is your feature request related to a problem?
description: >-
Please add a clear and concise description of what
the problem is. _Ex. I'm always frustrated when [...]_
- type: textarea
attributes:
label: Describe the solution you'd like
description: >-
A clear and concise description of what you want to happen.
validations:
required: true

- type: textarea
attributes:
label: Describe alternatives you've considered
description: >-
A clear and concise description of any alternative solutions
or features you've considered.
validations:
required: true

- type: textarea
attributes:
label: Additional context
description: >-
Add any other context or screenshots about
the feature request here.
- type: checkboxes
attributes:
label: Code of Conduct
description: |
Read the [aio-libs Code of Conduct][CoC] first.
[CoC]: https://github.com/aio-libs/.github/blob/master/CODE_OF_CONDUCT.md
options:
- label: I agree to follow the aio-libs Code of Conduct
required: true
...
23 changes: 23 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---

version: 2
updates:

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
labels:
- dependencies
schedule:
interval: "daily"

# Maintain dependencies for Python
- package-ecosystem: "pip"
directory: "/"
labels:
- dependencies
schedule:
interval: "daily"
open-pull-requests-limit: 10

...
27 changes: 27 additions & 0 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---

name: Dependabot auto-merge
on: pull_request_target

permissions:
pull-requests: write
contents: write

jobs:
dependabot:
runs-on: ubuntu-latest
timeout-minutes: 1
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

...
Loading

0 comments on commit be0833e

Please sign in to comment.