Skip to content

Commit c6b5353

Browse files
Merge pull request #65 from andrey-git/Update-basics
Update environment
2 parents df2bbe9 + bdde22e commit c6b5353

29 files changed

+3516
-102
lines changed

.devcontainer/devcontainer.json

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"containerEnv": {
3+
"POETRY_VIRTUALENVS_IN_PROJECT": "true"
4+
},
5+
"runArgs": ["-e", "GIT_EDITOR=code --wait"],
6+
"customizations": {
7+
"codespaces": {
8+
"openFiles": ["README.md"]
9+
},
10+
"vscode": {
11+
"extensions": [
12+
"ms-python.python",
13+
"redhat.vscode-yaml",
14+
"esbenp.prettier-vscode",
15+
"GitHub.vscode-pull-request-github",
16+
"charliermarsh.ruff",
17+
"GitHub.vscode-github-actions",
18+
"ryanluker.vscode-coverage-gutters",
19+
"GitHub.copilot",
20+
"ms-python.vscode-pylance"
21+
],
22+
"settings": {
23+
"[python]": {
24+
"editor.defaultFormatter": "charliermarsh.ruff",
25+
"editor.formatOnSave": true,
26+
"editor.codeActionsOnSave": {
27+
"source.fixAll": "explicit",
28+
"source.organizeImports": "explicit"
29+
}
30+
},
31+
"coverage-gutters.customizable.context-menu": true,
32+
"coverage-gutters.customizable.status-bar-toggler-watchCoverageAndVisibleEditors-enabled": true,
33+
"coverage-gutters.showGutterCoverage": false,
34+
"coverage-gutters.showLineCoverage": true,
35+
"coverage-gutters.xmlname": "coverage.xml",
36+
"python.analysis.extraPaths": ["${workspaceFolder}"],
37+
"python.defaultInterpreterPath": ".venv/bin/python",
38+
"python.formatting.provider": "ruff",
39+
"python.linting.enabled": true,
40+
"python.linting.mypyEnabled": true,
41+
"python.linting.pylintEnabled": true,
42+
"python.testing.cwd": "${workspaceFolder}",
43+
"python.testing.pytestArgs": ["--cov-report=xml"],
44+
"python.testing.pytestEnabled": true,
45+
"ruff.importStrategy": "fromEnvironment",
46+
"ruff.interpreter": [".venv/bin/python"],
47+
"files.trimTrailingWhitespace": true,
48+
"terminal.integrated.defaultProfile.linux": "zsh"
49+
}
50+
}
51+
},
52+
"features": {
53+
"ghcr.io/devcontainers-contrib/features/poetry:2": {},
54+
"ghcr.io/devcontainers/features/github-cli:1": {},
55+
"ghcr.io/devcontainers/features/node:1": {},
56+
"ghcr.io/devcontainers/features/python:1": {
57+
"installTools": false
58+
}
59+
},
60+
"image": "mcr.microsoft.com/devcontainers/python:1-3.12",
61+
"name": "pySensibo",
62+
"updateContentCommand": ". ${NVM_DIR}/nvm.sh && nvm install && nvm use && npm install && poetry install && poetry check"
63+
}

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.github/* @gjohansson-ST

.github/CODE_OF_CONDUCT.md

+74
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 frenck@addons.community. 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

+29
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/andrey-git/pysensibo/issues
29+
[prs]: https://github.com/andrey-git/pysensibo/pulls

.github/FUNDING.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
github:
3+
- gjohansson-ST

.github/ISSUE_TEMPLATE.md

+20
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

+9
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

+85
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." # yamllint disable-line rule:line-length
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." # yamllint disable-line rule:line-length
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." # yamllint disable-line rule:line-length
56+
- name: "help-wanted"
57+
color: 0e8a16
58+
description: "We need some extra helping hands or expertise in order to resolve this." # yamllint disable-line rule:line-length
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." # yamllint disable-line rule:line-length
70+
- name: "priority-high"
71+
color: b60205
72+
description: "After critical issues are fixed, these should be dealt with before any further issues." # yamllint disable-line rule:line-length
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

+57
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/workflows/labels.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Sync labels
3+
4+
# yamllint disable-line rule:truthy
5+
on:
6+
push:
7+
branches:
8+
- master
9+
paths:
10+
- .github/labels.yml
11+
workflow_dispatch:
12+
13+
jobs:
14+
labels:
15+
name: ♻️ Sync labels
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: ⤵️ Check out code from GitHub
19+
uses: actions/checkout@v4.1.7
20+
- name: 🚀 Run Label Syncer
21+
uses: micnncim/action-label-syncer@v1.3.0
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)