Skip to content

Commit 7a922d4

Browse files
committed
Initial commit
0 parents  commit 7a922d4

35 files changed

+2183
-0
lines changed

.devcontainer.json

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.177.0/containers/python-3
3+
{
4+
"customizations": {
5+
// Configure properties specific to VS Code.
6+
"vscode": {
7+
"extensions": [
8+
"charliermarsh.ruff",
9+
"eamodio.gitlens",
10+
"github.vscode-pull-request-github",
11+
"ms-python.python",
12+
"ms-python.vscode-pylance",
13+
"ms-python.mypy-type-checker",
14+
"ms-vscode.makefile-tools",
15+
"ryanluker.vscode-coverage-gutters",
16+
"visualstudioexptteam.vscodeintellicode"
17+
],
18+
// Set *default* container specific settings.json values on container create.
19+
"settings": {
20+
"[python]": {
21+
"editor.defaultFormatter": "charliermarsh.ruff"
22+
},
23+
"editor.formatOnPaste": false,
24+
"editor.formatOnSave": true,
25+
"editor.formatOnType": true,
26+
"editor.tabSize": 4,
27+
"files.eol": "\n",
28+
"files.trimTrailingWhitespace": true,
29+
"python.analysis.autoImportCompletions": true,
30+
"python.analysis.typeCheckingMode": "basic",
31+
"python.defaultInterpreterPath": "/home/vscode/.local/venv/bin/python",
32+
"python.languageServer": "Pylance",
33+
"python.pythonPath": "/home/vscode/.local/venv/bin/python",
34+
"python.terminal.activateEnvInCurrentTerminal": true,
35+
"python.testing.pytestArgs": ["--no-cov"],
36+
"python.testing.pytestEnabled": true,
37+
"python.testing.unittestEnabled": false,
38+
"terminal.integrated.defaultProfile.linux": "zsh",
39+
"terminal.integrated.profiles.linux": {
40+
"zsh": {
41+
"path": "/usr/bin/zsh"
42+
}
43+
}
44+
}
45+
}
46+
},
47+
// Add the IDs of extensions you want installed when the container is created.
48+
"features": {},
49+
"image": "mcr.microsoft.com/devcontainers/base:debian",
50+
"name": "webrtc-models",
51+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
52+
// "forwardPorts": [],
53+
// Use 'postCreateCommand' to run commands after the container is created.
54+
"postCreateCommand": "curl -LsSf https://astral.sh/uv/install.sh | sh && uv sync --frozen --dev && pre-commit install",
55+
"postStartCommand": "uv sync --dev",
56+
"remoteEnv": {
57+
"UV_PROJECT_ENVIRONMENT": "/home/vscode/.local/venv",
58+
"PATH": "/home/vscode/.cargo/bin:/home/vscode/.local/venv/bin:${containerEnv:PATH}"
59+
},
60+
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
61+
"remoteUser": "vscode",
62+
"runArgs": ["-e", "GIT_EDITOR=code --wait"]
63+
}

.github/CODE_OF_CONDUCT.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Code of conduct
2+
3+
## Our pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, gender identity and expression, level of experience,
9+
nationality, personal appearance, race, religion, or sexual identity and
10+
orientation.
11+
12+
## Our standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
- The use of sexualized language or imagery and unwelcome sexual attention
26+
or advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or
30+
electronic address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate
32+
in a professional setting
33+
34+
## Our responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project lead at [email protected]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project lead is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
71+
version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
72+
73+
[homepage]: http://contributor-covenant.org
74+
[version]: http://contributor-covenant.org/version/1/4/

.github/CONTRIBUTING.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Contributing
2+
3+
When contributing to this repository, please first discuss the change you wish
4+
to make via issue, email, or any other method with the owners of this repository
5+
before making a change.
6+
7+
Please note we have a code of conduct, please follow it in all your interactions
8+
with the project.
9+
10+
## Issues and feature requests
11+
12+
You've found a bug in the source code, a mistake in the documentation or maybe
13+
you'd like a new feature? You can help us by submitting an issue to our
14+
[GitHub Repository][github]. Before you create an issue, make sure you search
15+
the archive, maybe your question was already answered.
16+
17+
Even better: You could submit a pull request with a fix / new feature!
18+
19+
## Pull request process
20+
21+
1. Search our repository for open or closed [pull requests][prs] that relates
22+
to your submission. You don't want to duplicate effort.
23+
24+
2. You may merge the pull request in once you have the sign-off of two other
25+
developers, or if you do not have permission to do that, you may request
26+
the second reviewer to merge it for you.
27+
28+
[github]: https://github.com/home-assistant-libs/python-webrtc-models/issues
29+
[prs]: https://github.com/home-assistant-libs/python-webrtc-models/pulls

.github/ISSUE_TEMPLATE.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Problem/Motivation
2+
3+
> (Why the issue was filed)
4+
5+
## Expected behavior
6+
7+
> (What you expected to happen)
8+
9+
## Actual behavior
10+
11+
> (What actually happened)
12+
13+
## Steps to reproduce
14+
15+
> (How can someone else make/see it happen)
16+
17+
## Proposed changes
18+
19+
> (If you have a proposed change, workaround or fix,
20+
> describe the rationale behind it)

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Proposed Changes
2+
3+
> (Describe the changes and rationale behind them)
4+
5+
## Related Issues
6+
7+
> ([Github link][autolink-references] to related issues or pull requests)
8+
9+
[autolink-references]: https://help.github.com/articles/autolinked-references-and-urls/

.github/labels.yml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
---
2+
- name: "breaking-change"
3+
color: ee0701
4+
description: "A breaking change for existing users."
5+
- name: "bugfix"
6+
color: ee0701
7+
description: "Inconsistencies or issues which will cause a problem for users or implementers."
8+
- name: "documentation"
9+
color: 0052cc
10+
description: "Solely about the documentation of the project."
11+
- name: "enhancement"
12+
color: 1d76db
13+
description: "Enhancement of the code, not introducing new features."
14+
- name: "refactor"
15+
color: 1d76db
16+
description: "Improvement of existing code, not introducing new features."
17+
- name: "performance"
18+
color: 1d76db
19+
description: "Improving performance, not introducing new features."
20+
- name: "new-feature"
21+
color: 0e8a16
22+
description: "New features or options."
23+
- name: "maintenance"
24+
color: 2af79e
25+
description: "Generic maintenance tasks."
26+
- name: "ci"
27+
color: 1d76db
28+
description: "Work that improves the continue integration."
29+
- name: "dependencies"
30+
color: 1d76db
31+
description: "Upgrade or downgrade of project dependencies."
32+
33+
- name: "in-progress"
34+
color: fbca04
35+
description: "Issue is currently being resolved by a developer."
36+
- name: "stale"
37+
color: fef2c0
38+
description: "There has not been activity on this issue or PR for quite some time."
39+
- name: "no-stale"
40+
color: fef2c0
41+
description: "This issue or PR is exempted from the stable bot."
42+
43+
- name: "security"
44+
color: ee0701
45+
description: "Marks a security issue that needs to be resolved asap."
46+
- name: "incomplete"
47+
color: fef2c0
48+
description: "Marks a PR or issue that is missing information."
49+
- name: "invalid"
50+
color: fef2c0
51+
description: "Marks a PR or issue that is missing information."
52+
53+
- name: "beginner-friendly"
54+
color: 0e8a16
55+
description: "Good first issue for people wanting to contribute to the project."
56+
- name: "help-wanted"
57+
color: 0e8a16
58+
description: "We need some extra helping hands or expertise in order to resolve this."
59+
60+
- name: "hacktoberfest"
61+
description: "Issues/PRs are participating in the Hacktoberfest."
62+
color: fbca04
63+
- name: "hacktoberfest-accepted"
64+
description: "Issues/PRs are participating in the Hacktoberfest."
65+
color: fbca04
66+
67+
- name: "priority-critical"
68+
color: ee0701
69+
description: "This should be dealt with ASAP. Not fixing this issue would be a serious error."
70+
- name: "priority-high"
71+
color: b60205
72+
description: "After critical issues are fixed, these should be dealt with before any further issues."
73+
- name: "priority-medium"
74+
color: 0e8a16
75+
description: "This issue may be useful, and needs some attention."
76+
- name: "priority-low"
77+
color: e4ea8a
78+
description: "Nice addition, maybe... someday..."
79+
80+
- name: "major"
81+
color: b60205
82+
description: "This PR causes a major version bump in the version number."
83+
- name: "minor"
84+
color: 0e8a16
85+
description: "This PR causes a minor version bump in the version number."

.github/release-drafter.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
name-template: "v$RESOLVED_VERSION"
3+
tag-template: "v$RESOLVED_VERSION"
4+
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
5+
sort-direction: ascending
6+
7+
categories:
8+
- title: "🚨 Breaking changes"
9+
labels:
10+
- "breaking-change"
11+
- title: "✨ New features"
12+
labels:
13+
- "new-feature"
14+
- title: "🐛 Bug fixes"
15+
labels:
16+
- "bugfix"
17+
- title: "🚀 Enhancements"
18+
labels:
19+
- "enhancement"
20+
- "refactor"
21+
- "performance"
22+
- title: "🧰 Maintenance"
23+
labels:
24+
- "maintenance"
25+
- "ci"
26+
- title: "📚 Documentation"
27+
labels:
28+
- "documentation"
29+
- title: "⬆️ Dependency updates"
30+
labels:
31+
- "dependencies"
32+
33+
version-resolver:
34+
major:
35+
labels:
36+
- "major"
37+
- "breaking-change"
38+
minor:
39+
labels:
40+
- "minor"
41+
- "new-feature"
42+
patch:
43+
labels:
44+
- "bugfix"
45+
- "chore"
46+
- "ci"
47+
- "dependencies"
48+
- "documentation"
49+
- "enhancement"
50+
- "performance"
51+
- "refactor"
52+
default: patch
53+
54+
template: |
55+
## What’s changed
56+
57+
$CHANGES

.github/renovate.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"commitMessagePrefix": "⬆️",
4+
"configMigration": true,
5+
"dependencyDashboard": true,
6+
"labels": ["dependencies", "no-stale"],
7+
"lockFileMaintenance": {
8+
"enabled": true
9+
},
10+
"packageRules": [
11+
{
12+
"addLabels": ["python"],
13+
"matchManagers": ["pep621"]
14+
},
15+
{
16+
"matchDepTypes": ["dev"],
17+
"matchManagers": ["pep621"],
18+
"rangeStrategy": "pin"
19+
},
20+
{
21+
"addLabels": ["github_actions"],
22+
"matchManagers": ["github-actions"],
23+
"rangeStrategy": "pin"
24+
},
25+
{
26+
"matchManagers": ["github-actions"],
27+
"matchUpdateTypes": ["minor", "patch"],
28+
"automerge": true
29+
}
30+
],
31+
"rebaseWhen": "behind-base-branch"
32+
}

0 commit comments

Comments
 (0)