Skip to content

Commit 8a129bd

Browse files
authored
Initial version (#1)
1 parent 1772b31 commit 8a129bd

51 files changed

Lines changed: 3050 additions & 86 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.codecov.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
3+
codecov:
4+
notify:
5+
after_n_builds: 5 # The number of test matrix+lint jobs uploading coverage
6+
wait_for_ci: false
7+
8+
require_ci_to_pass: false
9+
10+
token: >- # notsecret # repo-scoped, upload-only, stability in fork PRs
11+
1377c679-8317-456e-a685-644c1de1e083
12+
13+
comment:
14+
require_changes: true
15+
16+
coverage:
17+
range: 99.34..100
18+
status:
19+
patch:
20+
default:
21+
target: 100%
22+
flags:
23+
- pytest
24+
project:
25+
default:
26+
target: 100%
27+
lib:
28+
flags:
29+
- pytest
30+
paths:
31+
- aiohttp_asyncmdnsresolver/
32+
target: 100%
33+
tests:
34+
flags:
35+
- pytest
36+
paths:
37+
- tests/
38+
target: 98.2% # 100%
39+
typing:
40+
flags:
41+
- MyPy
42+
target: 100% # 100%
43+
44+
...

.coveragerc

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
[html]
2+
show_contexts = true
3+
skip_covered = false
4+
5+
[paths]
6+
_site-packages-to-src-mapping =
7+
src
8+
*/src
9+
*\src
10+
*/lib/pypy*/site-packages
11+
*/lib/python*/site-packages
12+
*\Lib\site-packages
13+
14+
[report]
15+
exclude_also =
16+
^\s*@pytest\.mark\.xfail
17+
# small library, don't fail when running without C-extension
18+
fail_under = 50.00
19+
skip_covered = true
20+
skip_empty = true
21+
show_missing = true
22+
23+
[run]
24+
branch = true
25+
cover_pylib = false
26+
# https://coverage.rtfd.io/en/latest/contexts.html#dynamic-contexts
27+
# dynamic_context = test_function # conflicts with `pytest-cov` if set here
28+
parallel = true
29+
plugins =
30+
covdefaults
31+
relative_files = true
32+
source =
33+
.
34+
source_pkgs =
35+
aiohttp_asyncmdnsresolver

.github/FUNDING.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
# These are supported funding model platforms
3+
4+
github:
5+
- asvetlov
6+
- webknjaz
7+
- Dreamsorcerer
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
---
2+
name: 🐞 Bug Report
3+
description: Create a report to help us improve.
4+
labels:
5+
- bug
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
**Thanks for taking a minute to file a bug report!**
11+
12+
13+
Verify first that your issue is not [already reported on
14+
GitHub][issue search].
15+
16+
_Please fill out the form below with as many precise
17+
details as possible._
18+
19+
[issue search]: ../search?q=is%3Aissue&type=issues
20+
21+
- type: checkboxes
22+
id: terms
23+
attributes:
24+
label: Please confirm the following
25+
description: |
26+
Read the [aio-libs Code of Conduct][CoC] first. Check the existing issues
27+
on the tracker. Take into account the possibility of your report
28+
surfacing a security vulnerability.
29+
30+
[CoC]: ../../.github/blob/main/CODE_OF_CONDUCT.md
31+
options:
32+
- label: |
33+
I agree to follow the [aio-libs Code of Conduct][CoC]
34+
35+
[CoC]: ../../.github/blob/main/CODE_OF_CONDUCT.md
36+
required: true
37+
- label: |
38+
I have checked the [current issues][issue search] for duplicates.
39+
40+
[issue search]: ../search?q=is%3Aissue&type=issues
41+
required: true
42+
- label: >-
43+
I understand this is open source software provided for free and
44+
that I might not receive a timely response.
45+
required: true
46+
- label: |
47+
I am positive I am **NOT** reporting a (potential) security
48+
vulnerability, to the best of my knowledge. *(These must be shared by
49+
submitting [this report form][vulnerability report form] instead, if
50+
any hesitation exists.)*
51+
52+
[vulnerability report form]: ../security/advisories/new
53+
required: true
54+
- label: >-
55+
I am willing to submit a pull request with reporoducers as xfailing test
56+
cases or even entire fix. *(Assign this issue to me.)*
57+
required: false
58+
59+
- type: textarea
60+
attributes:
61+
label: Describe the bug
62+
description: >-
63+
A clear and concise description of what the bug is.
64+
validations:
65+
required: true
66+
67+
- type: textarea
68+
attributes:
69+
label: To Reproduce
70+
description: >-
71+
Describe the steps to reproduce this bug.
72+
placeholder: |
73+
1. Have certain environment
74+
2. Run given code snippet in a certain way
75+
3. See some behavior described
76+
validations:
77+
required: true
78+
79+
- type: textarea
80+
attributes:
81+
label: Expected behavior
82+
description: >-
83+
A clear and concise description of what you expected to happen.
84+
validations:
85+
required: true
86+
87+
- type: textarea
88+
attributes:
89+
label: Logs/tracebacks
90+
description: |
91+
If applicable, add logs/tracebacks to help explain your problem.
92+
Paste the output of the steps above, including the commands
93+
themselves and their output/traceback etc.
94+
render: python-traceback
95+
validations:
96+
required: true
97+
98+
- type: textarea
99+
attributes:
100+
label: Python Version
101+
description: Attach your version of Python.
102+
render: console
103+
value: |
104+
$ python --version
105+
validations:
106+
required: true
107+
- type: textarea
108+
attributes:
109+
label: aiohttp_asyncmdnsresolver Version
110+
description: Attach your version of aiohttp_asyncmdnsresolver.
111+
render: console
112+
value: |
113+
$ python -m pip show aiohttp_asyncmdnsresolver
114+
validations:
115+
required: true
116+
117+
- type: textarea
118+
attributes:
119+
label: OS
120+
placeholder: >-
121+
For example, Arch Linux, Windows, macOS, etc.
122+
validations:
123+
required: true
124+
125+
- type: textarea
126+
attributes:
127+
label: Additional context
128+
description: |
129+
Add any other context about the problem here.
130+
131+
Describe the environment you have that lead to your issue.
132+
This includes proxy server and other bits that are related to your case.
133+
134+
...

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
3+
# yamllint disable rule:line-length
4+
# Ref: https://help.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository#configuring-the-template-chooser
5+
# yamllint enable rule:line-length
6+
blank_issues_enabled: false # default: true
7+
contact_links:
8+
- name: 🔐 Security bug report 🔥
9+
url: https://github.com/aio-libs/.github/security/policy
10+
about: |
11+
Please learn how to report security vulnerabilities here.
12+
13+
For all security related bugs, send an email
14+
instead of using this issue tracker and you
15+
will receive a prompt response.
16+
17+
For more information, see
18+
https://github.com/aio-libs/.github/security/policy
19+
- name: >-
20+
[🎉 NEW 🎉]
21+
🤷💻🤦 GitHub Discussions
22+
url: https://github.com/aio-libs/aiohttp_asyncmdnsresolver/discussions
23+
about: >-
24+
Please ask typical Q&A in the Discussions tab or on StackOverflow
25+
- name: 🤷💻🤦 StackOverflow
26+
url: https://stackoverflow.com/questions/tagged/aiohttp
27+
about: >-
28+
Please ask typical Q&A here or in the
29+
Discussions tab @ https://github.com/aio-libs/aiohttp_asyncmdnsresolver/discussions
30+
- name: 💬 Gitter Chat
31+
url: https://gitter.im/aio-libs/Lobby
32+
about: Chat with devs and community
33+
- name: 📝 Code of Conduct
34+
url: https://github.com/aio-libs/.github/blob/main/CODE_OF_CONDUCT.md
35+
about: ❤ Be nice to other members of the community. ☮ Behave.
36+
37+
...
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
name: 🚀 Feature request
3+
description: Suggest an idea for this project.
4+
labels:
5+
- enhancement
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
**Thanks for taking a minute to file a feature for aiohttp_asyncmdnsresolver!**
11+
12+
13+
Verify first that your feature request is not [already reported on
14+
GitHub][issue search].
15+
16+
_Please fill out the form below with as many precise
17+
details as possible._
18+
19+
[issue search]: ../search?q=is%3Aissue&type=issues
20+
21+
- type: textarea
22+
attributes:
23+
label: Is your feature request related to a problem?
24+
description: >-
25+
Please add a clear and concise description of what
26+
the problem is. _Ex. I'm always frustrated when [...]_
27+
28+
- type: textarea
29+
attributes:
30+
label: Describe the solution you'd like
31+
description: >-
32+
A clear and concise description of what you want to happen.
33+
validations:
34+
required: true
35+
36+
- type: textarea
37+
attributes:
38+
label: Describe alternatives you've considered
39+
description: >-
40+
A clear and concise description of any alternative solutions
41+
or features you've considered.
42+
validations:
43+
required: true
44+
45+
- type: textarea
46+
attributes:
47+
label: Additional context
48+
description: >-
49+
Add any other context or screenshots about
50+
the feature request here.
51+
52+
- type: checkboxes
53+
attributes:
54+
label: Code of Conduct
55+
description: |
56+
Read the [aio-libs Code of Conduct][CoC] first.
57+
58+
[CoC]: https://github.com/aio-libs/.github/blob/main/CODE_OF_CONDUCT.md
59+
options:
60+
- label: I agree to follow the aio-libs Code of Conduct
61+
required: true
62+
...

.github/dependabot.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
3+
version: 2
4+
updates:
5+
6+
# Maintain dependencies for GitHub Actions
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
labels:
10+
- dependencies
11+
schedule:
12+
interval: "daily"
13+
14+
# Maintain dependencies for Python
15+
- package-ecosystem: "pip"
16+
directory: "/"
17+
labels:
18+
- dependencies
19+
schedule:
20+
interval: "daily"
21+
open-pull-requests-limit: 10
22+
23+
...

.github/workflows/auto-merge.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Dependabot auto-merge
2+
on: pull_request_target
3+
4+
permissions:
5+
pull-requests: write
6+
contents: write
7+
8+
jobs:
9+
dependabot:
10+
runs-on: ubuntu-latest
11+
timeout-minutes: 20
12+
if: ${{ github.actor == 'dependabot[bot]' }}
13+
steps:
14+
- name: Dependabot metadata
15+
id: metadata
16+
uses: dependabot/fetch-metadata@v2.2.0
17+
with:
18+
github-token: "${{ secrets.GITHUB_TOKEN }}"
19+
- name: Enable auto-merge for Dependabot PRs
20+
run: gh pr merge --auto --squash "$PR_URL"
21+
env:
22+
PR_URL: ${{github.event.pull_request.html_url}}
23+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)