py-atmos-serial 2026.9.0a1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- py_atmos_serial-2026.9.0a1/.github/CODEOWNERS +8 -0
- py_atmos_serial-2026.9.0a1/.github/ISSUE_TEMPLATE/bug_report.yml +90 -0
- py_atmos_serial-2026.9.0a1/.github/ISSUE_TEMPLATE/config.yml +8 -0
- py_atmos_serial-2026.9.0a1/.github/ISSUE_TEMPLATE/documentation.yml +40 -0
- py_atmos_serial-2026.9.0a1/.github/ISSUE_TEMPLATE/feature_request.yml +73 -0
- py_atmos_serial-2026.9.0a1/.github/ISSUE_TEMPLATE/question.yml +35 -0
- py_atmos_serial-2026.9.0a1/.github/PULL_REQUEST_TEMPLATE.md +31 -0
- py_atmos_serial-2026.9.0a1/.github/branch-protection-checklist.md +42 -0
- py_atmos_serial-2026.9.0a1/.github/copilot-instructions.md +39 -0
- py_atmos_serial-2026.9.0a1/.github/dependabot.yml +36 -0
- py_atmos_serial-2026.9.0a1/.github/instructions/docs.instructions.md +9 -0
- py_atmos_serial-2026.9.0a1/.github/instructions/library-core.instructions.md +11 -0
- py_atmos_serial-2026.9.0a1/.github/instructions/protocol.instructions.md +12 -0
- py_atmos_serial-2026.9.0a1/.github/instructions/tests.instructions.md +10 -0
- py_atmos_serial-2026.9.0a1/.github/labeler.yml +36 -0
- py_atmos_serial-2026.9.0a1/.github/labels.yml +80 -0
- py_atmos_serial-2026.9.0a1/.github/renovate.json +60 -0
- py_atmos_serial-2026.9.0a1/.github/skills/code-review/SKILL.md +57 -0
- py_atmos_serial-2026.9.0a1/.github/workflows/ci.yml +218 -0
- py_atmos_serial-2026.9.0a1/.github/workflows/codeql.yml +57 -0
- py_atmos_serial-2026.9.0a1/.github/workflows/dependabot.yml +57 -0
- py_atmos_serial-2026.9.0a1/.github/workflows/docs.yml +210 -0
- py_atmos_serial-2026.9.0a1/.github/workflows/label-sync.yml +27 -0
- py_atmos_serial-2026.9.0a1/.github/workflows/pull-request-labeler.yml +22 -0
- py_atmos_serial-2026.9.0a1/.github/workflows/release.yml +143 -0
- py_atmos_serial-2026.9.0a1/.github/workflows/security.yml +35 -0
- py_atmos_serial-2026.9.0a1/.gitignore +27 -0
- py_atmos_serial-2026.9.0a1/.gitleaks.toml +10 -0
- py_atmos_serial-2026.9.0a1/.pre-commit-config.yaml +63 -0
- py_atmos_serial-2026.9.0a1/.python-version +1 -0
- py_atmos_serial-2026.9.0a1/AGENTS.md +32 -0
- py_atmos_serial-2026.9.0a1/CHANGELOG.md +14 -0
- py_atmos_serial-2026.9.0a1/CODE_OF_CONDUCT.md +58 -0
- py_atmos_serial-2026.9.0a1/CONTRIBUTING.md +39 -0
- py_atmos_serial-2026.9.0a1/GOVERNANCE.md +10 -0
- py_atmos_serial-2026.9.0a1/LICENSE +21 -0
- py_atmos_serial-2026.9.0a1/PKG-INFO +65 -0
- py_atmos_serial-2026.9.0a1/README.rst +43 -0
- py_atmos_serial-2026.9.0a1/SECURITY.md +43 -0
- py_atmos_serial-2026.9.0a1/codecov.yml +24 -0
- py_atmos_serial-2026.9.0a1/docs/architecture/overview.rst +28 -0
- py_atmos_serial-2026.9.0a1/docs/conf.py +27 -0
- py_atmos_serial-2026.9.0a1/docs/guides/listen.rst +25 -0
- py_atmos_serial-2026.9.0a1/docs/index.rst +11 -0
- py_atmos_serial-2026.9.0a1/pyproject.toml +121 -0
- py_atmos_serial-2026.9.0a1/scripts/README.md +8 -0
- py_atmos_serial-2026.9.0a1/scripts/apply_github_hardening.sh +221 -0
- py_atmos_serial-2026.9.0a1/scripts/check_patch_coverage.sh +25 -0
- py_atmos_serial-2026.9.0a1/src/pyatmos_serial/__init__.py +37 -0
- py_atmos_serial-2026.9.0a1/src/pyatmos_serial/errors.py +19 -0
- py_atmos_serial-2026.9.0a1/src/pyatmos_serial/feed.py +208 -0
- py_atmos_serial-2026.9.0a1/src/pyatmos_serial/port.py +96 -0
- py_atmos_serial-2026.9.0a1/src/pyatmos_serial/protocol/__init__.py +9 -0
- py_atmos_serial-2026.9.0a1/src/pyatmos_serial/protocol/frame.py +43 -0
- py_atmos_serial-2026.9.0a1/src/pyatmos_serial/py.typed +0 -0
- py_atmos_serial-2026.9.0a1/tests/test_feed.py +98 -0
- py_atmos_serial-2026.9.0a1/tests/test_frame.py +24 -0
- py_atmos_serial-2026.9.0a1/tests/test_port.py +52 -0
- py_atmos_serial-2026.9.0a1/uv.lock +1958 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
name: Bug report
|
|
2
|
+
description: Something is broken or behaves unexpectedly in py-atmos-serial.
|
|
3
|
+
title: "bug: "
|
|
4
|
+
labels: ["bug"]
|
|
5
|
+
body:
|
|
6
|
+
- type: markdown
|
|
7
|
+
attributes:
|
|
8
|
+
value: |
|
|
9
|
+
Thanks for reporting a bug.
|
|
10
|
+
|
|
11
|
+
**Security issues must not be filed here.** Use [private vulnerability reporting](https://github.com/marpi82/py-atmos-serial/security/advisories/new) or email `marpi82.dev@google.com` (see [SECURITY.md](https://github.com/marpi82/py-atmos-serial/blob/main/SECURITY.md)).
|
|
12
|
+
|
|
13
|
+
- type: textarea
|
|
14
|
+
id: summary
|
|
15
|
+
attributes:
|
|
16
|
+
label: Summary
|
|
17
|
+
description: One or two sentences describing the problem.
|
|
18
|
+
placeholder: e.g. AtmosSerialFeed publishes a register value from undecoded bytes.
|
|
19
|
+
validations:
|
|
20
|
+
required: true
|
|
21
|
+
|
|
22
|
+
- type: textarea
|
|
23
|
+
id: expected
|
|
24
|
+
attributes:
|
|
25
|
+
label: Expected behavior
|
|
26
|
+
validations:
|
|
27
|
+
required: true
|
|
28
|
+
|
|
29
|
+
- type: textarea
|
|
30
|
+
id: actual
|
|
31
|
+
attributes:
|
|
32
|
+
label: Actual behavior
|
|
33
|
+
description: What actually happened (include error messages / traceback if any).
|
|
34
|
+
validations:
|
|
35
|
+
required: true
|
|
36
|
+
|
|
37
|
+
- type: textarea
|
|
38
|
+
id: reproduce
|
|
39
|
+
attributes:
|
|
40
|
+
label: Steps to reproduce
|
|
41
|
+
description: Minimal steps. Prefer a short async snippet using `AtmosSerialFeed` / `SerialPortSource`.
|
|
42
|
+
placeholder: |
|
|
43
|
+
1. …
|
|
44
|
+
2. …
|
|
45
|
+
3. …
|
|
46
|
+
render: markdown
|
|
47
|
+
validations:
|
|
48
|
+
required: true
|
|
49
|
+
|
|
50
|
+
- type: textarea
|
|
51
|
+
id: environment
|
|
52
|
+
attributes:
|
|
53
|
+
label: Environment
|
|
54
|
+
value: |
|
|
55
|
+
- py-atmos-serial version / git SHA:
|
|
56
|
+
- Python version:
|
|
57
|
+
- Gateway firmware (if known):
|
|
58
|
+
- OS:
|
|
59
|
+
- Home Assistant version (if relevant):
|
|
60
|
+
render: markdown
|
|
61
|
+
validations:
|
|
62
|
+
required: true
|
|
63
|
+
|
|
64
|
+
- type: dropdown
|
|
65
|
+
id: area
|
|
66
|
+
attributes:
|
|
67
|
+
label: Area
|
|
68
|
+
multiple: true
|
|
69
|
+
options:
|
|
70
|
+
- Serial port (`SerialPortSource`)
|
|
71
|
+
- Protocol codec (`pyatmos_serial.protocol`)
|
|
72
|
+
- Frame codec (`decode_frames`)
|
|
73
|
+
- Feed / ValueStore / EventBus
|
|
74
|
+
- Docs
|
|
75
|
+
- CI / packaging
|
|
76
|
+
- Other / unsure
|
|
77
|
+
validations:
|
|
78
|
+
required: true
|
|
79
|
+
|
|
80
|
+
- type: checkboxes
|
|
81
|
+
id: checklist
|
|
82
|
+
attributes:
|
|
83
|
+
label: Checklist
|
|
84
|
+
options:
|
|
85
|
+
- label: I searched existing issues for duplicates.
|
|
86
|
+
required: true
|
|
87
|
+
- label: This is not a security vulnerability (those go through SECURITY.md).
|
|
88
|
+
required: true
|
|
89
|
+
- label: I can reproduce this offline with captured frames / fixtures when practical.
|
|
90
|
+
required: false
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
blank_issues_enabled: false
|
|
2
|
+
contact_links:
|
|
3
|
+
- name: Security vulnerability
|
|
4
|
+
url: https://github.com/marpi82/py-atmos-serial/security/advisories/new
|
|
5
|
+
about: Do not file a public issue. Use private vulnerability reporting (or email marpi82.dev@google.com). See SECURITY.md.
|
|
6
|
+
- name: Documentation
|
|
7
|
+
url: https://marpi82.github.io/py-atmos-serial/
|
|
8
|
+
about: Sphinx docs for py-atmos-serial (when Pages is enabled).
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
name: Documentation
|
|
2
|
+
description: Docs are wrong, missing, unclear, or out of date relative to the code.
|
|
3
|
+
title: "docs: "
|
|
4
|
+
labels: ["documentation"]
|
|
5
|
+
body:
|
|
6
|
+
- type: markdown
|
|
7
|
+
attributes:
|
|
8
|
+
value: |
|
|
9
|
+
Docs live under `docs/` (Sphinx + Furo) and must describe the code as it is. Docs↔code drift in either direction is a defect.
|
|
10
|
+
|
|
11
|
+
- type: textarea
|
|
12
|
+
id: summary
|
|
13
|
+
attributes:
|
|
14
|
+
label: What is wrong or missing?
|
|
15
|
+
description: Page / section, and what you expected to find.
|
|
16
|
+
validations:
|
|
17
|
+
required: true
|
|
18
|
+
|
|
19
|
+
- type: textarea
|
|
20
|
+
id: suggestion
|
|
21
|
+
attributes:
|
|
22
|
+
label: Suggested fix
|
|
23
|
+
validations:
|
|
24
|
+
required: false
|
|
25
|
+
|
|
26
|
+
- type: input
|
|
27
|
+
id: link
|
|
28
|
+
attributes:
|
|
29
|
+
label: Link / path
|
|
30
|
+
placeholder: docs/guides/language.rst
|
|
31
|
+
validations:
|
|
32
|
+
required: false
|
|
33
|
+
|
|
34
|
+
- type: checkboxes
|
|
35
|
+
id: checklist
|
|
36
|
+
attributes:
|
|
37
|
+
label: Checklist
|
|
38
|
+
options:
|
|
39
|
+
- label: I checked the latest docs in this repo’s `docs/` tree.
|
|
40
|
+
required: true
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
name: Feature request
|
|
2
|
+
description: Propose a new capability or improvement for py-atmos-serial.
|
|
3
|
+
title: "feat: "
|
|
4
|
+
labels: ["enhancement"]
|
|
5
|
+
body:
|
|
6
|
+
- type: markdown
|
|
7
|
+
attributes:
|
|
8
|
+
value: |
|
|
9
|
+
Describe the problem you want solved. Focus on the **user / HA integration need**; implementation details can come later.
|
|
10
|
+
|
|
11
|
+
Breaking changes to the public API (`AtmosSerialFeed`, `SerialPortSource`, `RegisterUpdate`, …) affect the Home Assistant integration — call that out explicitly.
|
|
12
|
+
|
|
13
|
+
- type: textarea
|
|
14
|
+
id: problem
|
|
15
|
+
attributes:
|
|
16
|
+
label: Problem / motivation
|
|
17
|
+
description: What are you trying to do that is hard or impossible today?
|
|
18
|
+
placeholder: As an HA integration author, I need …
|
|
19
|
+
validations:
|
|
20
|
+
required: true
|
|
21
|
+
|
|
22
|
+
- type: textarea
|
|
23
|
+
id: proposal
|
|
24
|
+
attributes:
|
|
25
|
+
label: Proposed solution
|
|
26
|
+
description: Sketch the API or behavior you have in mind.
|
|
27
|
+
validations:
|
|
28
|
+
required: true
|
|
29
|
+
|
|
30
|
+
- type: textarea
|
|
31
|
+
id: alternatives
|
|
32
|
+
attributes:
|
|
33
|
+
label: Alternatives considered
|
|
34
|
+
validations:
|
|
35
|
+
required: false
|
|
36
|
+
|
|
37
|
+
- type: dropdown
|
|
38
|
+
id: impact
|
|
39
|
+
attributes:
|
|
40
|
+
label: Public API impact
|
|
41
|
+
options:
|
|
42
|
+
- No — additive / internal only
|
|
43
|
+
- Yes — additive public API (new symbols / optional args)
|
|
44
|
+
- Yes — breaking change to documented public API
|
|
45
|
+
- Unsure
|
|
46
|
+
validations:
|
|
47
|
+
required: true
|
|
48
|
+
|
|
49
|
+
- type: dropdown
|
|
50
|
+
id: area
|
|
51
|
+
attributes:
|
|
52
|
+
label: Area
|
|
53
|
+
multiple: true
|
|
54
|
+
options:
|
|
55
|
+
- Serial port (`SerialPortSource`)
|
|
56
|
+
- Protocol codec (`pyatmos_serial.protocol`)
|
|
57
|
+
- Frame codec (`decode_frames`)
|
|
58
|
+
- Feed / ValueStore / EventBus
|
|
59
|
+
- Docs
|
|
60
|
+
- CI / packaging
|
|
61
|
+
- Other / unsure
|
|
62
|
+
validations:
|
|
63
|
+
required: true
|
|
64
|
+
|
|
65
|
+
- type: checkboxes
|
|
66
|
+
id: checklist
|
|
67
|
+
attributes:
|
|
68
|
+
label: Checklist
|
|
69
|
+
options:
|
|
70
|
+
- label: I searched existing issues / docs for similar requests.
|
|
71
|
+
required: true
|
|
72
|
+
- label: I am willing to help implement this (optional).
|
|
73
|
+
required: false
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
name: Question
|
|
2
|
+
description: Ask how something works, or whether observed behavior is intended.
|
|
3
|
+
title: "question: "
|
|
4
|
+
labels: ["question"]
|
|
5
|
+
body:
|
|
6
|
+
- type: markdown
|
|
7
|
+
attributes:
|
|
8
|
+
value: |
|
|
9
|
+
Prefer this when you are unsure whether something is a bug.
|
|
10
|
+
|
|
11
|
+
For setup help, see [CONTRIBUTING.md](https://github.com/marpi82/py-atmos-serial/blob/main/CONTRIBUTING.md) and [AGENTS.md](https://github.com/marpi82/py-atmos-serial/blob/main/AGENTS.md).
|
|
12
|
+
|
|
13
|
+
- type: textarea
|
|
14
|
+
id: question
|
|
15
|
+
attributes:
|
|
16
|
+
label: Question
|
|
17
|
+
validations:
|
|
18
|
+
required: true
|
|
19
|
+
|
|
20
|
+
- type: textarea
|
|
21
|
+
id: context
|
|
22
|
+
attributes:
|
|
23
|
+
label: Context
|
|
24
|
+
description: Relevant code, versions, adapter, and baud rate. Do not paste a live bus capture that includes private data.
|
|
25
|
+
render: markdown
|
|
26
|
+
validations:
|
|
27
|
+
required: false
|
|
28
|
+
|
|
29
|
+
- type: checkboxes
|
|
30
|
+
id: checklist
|
|
31
|
+
attributes:
|
|
32
|
+
label: Checklist
|
|
33
|
+
options:
|
|
34
|
+
- label: I searched issues and the docs before asking.
|
|
35
|
+
required: true
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
## Summary
|
|
2
|
+
|
|
3
|
+
<!-- What does this PR change and why? Link related issues with "Fixes #N" / "Closes #N" when applicable. -->
|
|
4
|
+
|
|
5
|
+
## Type of change
|
|
6
|
+
|
|
7
|
+
<!-- Check all that apply. -->
|
|
8
|
+
|
|
9
|
+
- [ ] Bug fix (non-breaking)
|
|
10
|
+
- [ ] New feature / enhancement (non-breaking)
|
|
11
|
+
- [ ] Breaking change to the **public API** (`AtmosSerialFeed`, `SerialPortSource`, `RegisterUpdate`, or other symbols in `pyatmos_serial.__all__`)
|
|
12
|
+
- [ ] Docs only
|
|
13
|
+
- [ ] Tests / CI / tooling / chore
|
|
14
|
+
|
|
15
|
+
## Checklist
|
|
16
|
+
|
|
17
|
+
- [ ] Commits are signed off (`git commit -s`) — [DCO](https://developercertificate.org/)
|
|
18
|
+
- [ ] English only in code, comments, and docs; Google-style docstrings
|
|
19
|
+
- [ ] `uv run --group dev --group test poe validate` passes locally
|
|
20
|
+
- [ ] Tests added / updated where practical. No real serial device required
|
|
21
|
+
- [ ] Docs updated when public behavior changes (`docs/` + Sphinx `-W` clean)
|
|
22
|
+
- [ ] No secrets, credentials, or private bus captures committed
|
|
23
|
+
- [ ] Frame layout was not invented. A new decoder includes a captured fixture and sets `CODEC_IMPLEMENTED` only then
|
|
24
|
+
|
|
25
|
+
## Test plan
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
uv run --group dev ruff check .
|
|
29
|
+
uv run --group dev poe typecheck
|
|
30
|
+
uv run --group dev --group test poe test
|
|
31
|
+
```
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Branch and tag protection checklist
|
|
2
|
+
|
|
3
|
+
Scorecard `BranchProtection` / `CodeReview` alerts need GitHub Settings changes
|
|
4
|
+
(not only repository files). `CODEOWNERS` is in `.github/CODEOWNERS`.
|
|
5
|
+
|
|
6
|
+
Release channel policy (enforced in CI by `.github/workflows/release.yml`):
|
|
7
|
+
|
|
8
|
+
- **`main`**: stable CalVer tags and pre-releases (`aN` / `bN` / `rcN`)
|
|
9
|
+
- **`release/*`**: pre-releases only — stable tags fail unless the tagged commit is on `origin/main`
|
|
10
|
+
|
|
11
|
+
Apply or refresh via `scripts/apply_github_hardening.sh`. UI: https://github.com/marpi82/py-atmos-serial/settings/rules
|
|
12
|
+
|
|
13
|
+
## Branch ruleset: `main`
|
|
14
|
+
|
|
15
|
+
1. Require a pull request before merging
|
|
16
|
+
2. Require code owner review
|
|
17
|
+
3. Dismiss stale pull request approvals when new commits are pushed
|
|
18
|
+
4. Require conversation resolution before merging
|
|
19
|
+
5. Do **not** allow force pushes
|
|
20
|
+
6. Do **not** allow deletions
|
|
21
|
+
7. Require status checks: `secrets (gitleaks)`, `security (pip-audit)`, `quality (lint + typecheck)`, `tests (3.13)`, `docs-verify`, `build`
|
|
22
|
+
8. Repository Admin may bypass (solo-maintainer)
|
|
23
|
+
|
|
24
|
+
## Branch ruleset: `release/**`
|
|
25
|
+
|
|
26
|
+
1. Require a pull request before merging
|
|
27
|
+
2. Do **not** allow force pushes
|
|
28
|
+
3. Restrict deletions
|
|
29
|
+
4. Repository Admin may bypass
|
|
30
|
+
|
|
31
|
+
## Tag ruleset (CalVer)
|
|
32
|
+
|
|
33
|
+
Patterns use fnmatch (`refs/tags/20*` and `refs/tags/v20*`) for CalVer tags and `aN`/`bN`/`rcN` pre-releases:
|
|
34
|
+
|
|
35
|
+
1. Restrict tag creations
|
|
36
|
+
2. Block tag deletions
|
|
37
|
+
3. Block force updates of existing tags
|
|
38
|
+
4. Repository Admin may bypass (needed to cut releases)
|
|
39
|
+
|
|
40
|
+
## After enabling
|
|
41
|
+
|
|
42
|
+
Re-run the **Security Checks** workflow so Scorecard re-evaluates BranchProtection / CodeReview.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# py-atmos-serial Copilot Instructions
|
|
2
|
+
|
|
3
|
+
## Critical AI Guidelines
|
|
4
|
+
|
|
5
|
+
### Core Principles
|
|
6
|
+
1. **Always refer to the latest documentation** — Check `docs/` and `AGENTS.md` for current architecture and patterns
|
|
7
|
+
2. **100% English code** — All files, comments, docstrings must be in English
|
|
8
|
+
3. **Base on existing files** — Never create code blindly. When uncertain, ask instead of guessing
|
|
9
|
+
4. **Home Assistant focus** — This library is the push (listen) side. `py-atmos-wg1000` is the pull side
|
|
10
|
+
|
|
11
|
+
### Language & Type Requirements (Python 3.13.2+)
|
|
12
|
+
|
|
13
|
+
- Complete type annotations; pass `mypy --strict`
|
|
14
|
+
- Follow PEP 621 for `pyproject.toml`
|
|
15
|
+
- Tooling: uv, Hatch/Hatchling, Ruff, Sphinx + Google-style docstrings
|
|
16
|
+
- Serial reads go through `asyncio.to_thread`
|
|
17
|
+
|
|
18
|
+
## Project Overview
|
|
19
|
+
|
|
20
|
+
**py-atmos-serial** passively listens on an ATMOS boiler RS485 bus.
|
|
21
|
+
|
|
22
|
+
- The port, buffer, and `RegisterUpdate` bus exist
|
|
23
|
+
- `decode_frames` raises `ProtocolUnknownError` for any non-empty buffer
|
|
24
|
+
- `CODEC_IMPLEMENTED` is `False`
|
|
25
|
+
|
|
26
|
+
Do not invent framing, checksums, baud, or register ids.
|
|
27
|
+
|
|
28
|
+
## Key modules
|
|
29
|
+
|
|
30
|
+
- `src/pyatmos_serial/port.py` — serial settings and the threaded port
|
|
31
|
+
- `src/pyatmos_serial/feed.py` — listen loop, store, bus
|
|
32
|
+
- `src/pyatmos_serial/protocol/frame.py` — unimplemented codec
|
|
33
|
+
|
|
34
|
+
## Do not
|
|
35
|
+
|
|
36
|
+
- Transmit on the bus
|
|
37
|
+
- Commit `.env` or live captures
|
|
38
|
+
- Treat raw bytes as a decoded register
|
|
39
|
+
- Hardcode a package version in `pyproject.toml`
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: "github-actions"
|
|
4
|
+
directory: "/"
|
|
5
|
+
schedule:
|
|
6
|
+
interval: "weekly"
|
|
7
|
+
cooldown:
|
|
8
|
+
default-days: 7
|
|
9
|
+
groups:
|
|
10
|
+
github-codeql-action:
|
|
11
|
+
patterns:
|
|
12
|
+
- "github/codeql-action/*"
|
|
13
|
+
github-codeql-action-security:
|
|
14
|
+
applies-to: security-updates
|
|
15
|
+
patterns:
|
|
16
|
+
- "github/codeql-action/*"
|
|
17
|
+
labels:
|
|
18
|
+
- "dependencies"
|
|
19
|
+
- "dependabot"
|
|
20
|
+
- "ci"
|
|
21
|
+
|
|
22
|
+
- package-ecosystem: "pip"
|
|
23
|
+
directory: "/"
|
|
24
|
+
schedule:
|
|
25
|
+
interval: "monthly"
|
|
26
|
+
cooldown:
|
|
27
|
+
default-days: 7
|
|
28
|
+
allow:
|
|
29
|
+
- dependency-type: "direct"
|
|
30
|
+
ignore:
|
|
31
|
+
- dependency-name: "uv"
|
|
32
|
+
- dependency-name: "urllib3"
|
|
33
|
+
labels:
|
|
34
|
+
- "security"
|
|
35
|
+
- "dependabot"
|
|
36
|
+
open-pull-requests-limit: 0
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
applyTo: "src/pyatmos_serial/**"
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Library core
|
|
6
|
+
|
|
7
|
+
- English only. mypy `--strict`. Ruff line length 130. Google docstrings.
|
|
8
|
+
- Async-first. Blocking serial calls go through `asyncio.to_thread`.
|
|
9
|
+
- Public names belong in `pyatmos_serial.__all__`.
|
|
10
|
+
- Do not invent RS485 framing. Unknown bytes raise `ProtocolUnknownError`.
|
|
11
|
+
- Logging uses `logging.getLogger(__name__)`. Do not configure logging here.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
applyTo: "src/pyatmos_serial/protocol/**"
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Protocol
|
|
6
|
+
|
|
7
|
+
The RS485 frame layout, checksum, and register map are unknown.
|
|
8
|
+
|
|
9
|
+
- `decode_frames` returns an empty result only for an empty buffer.
|
|
10
|
+
- Any other buffer raises `ProtocolUnknownError` and does not consume the bytes.
|
|
11
|
+
- `CODEC_IMPLEMENTED` stays `False` until a decoder is backed by a captured frame and a test.
|
|
12
|
+
- Do not add a CRC polynomial, start byte, or baud constant presented as fact.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
applyTo: "tests/**"
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Tests
|
|
6
|
+
|
|
7
|
+
- Offline only. Do not open a real serial device.
|
|
8
|
+
- Inject a `ByteSource` or monkeypatch `_open_port`.
|
|
9
|
+
- A test that decodes a frame must patch `decode_frames` and must not claim the patch is the bus format.
|
|
10
|
+
- Docstrings on tests. `S101` is ignored in `tests/`.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
documentation:
|
|
2
|
+
- changed-files:
|
|
3
|
+
- any-glob-to-any-file:
|
|
4
|
+
- docs/**
|
|
5
|
+
- README.rst
|
|
6
|
+
- CHANGELOG.md
|
|
7
|
+
- CONTRIBUTING.md
|
|
8
|
+
- SECURITY.md
|
|
9
|
+
- AGENTS.md
|
|
10
|
+
- GOVERNANCE.md
|
|
11
|
+
- CODE_OF_CONDUCT.md
|
|
12
|
+
- .github/*.md
|
|
13
|
+
- .github/ISSUE_TEMPLATE/**
|
|
14
|
+
- .github/PULL_REQUEST_TEMPLATE.md
|
|
15
|
+
|
|
16
|
+
ci:
|
|
17
|
+
- changed-files:
|
|
18
|
+
- any-glob-to-any-file:
|
|
19
|
+
- .github/workflows/**
|
|
20
|
+
|
|
21
|
+
testing:
|
|
22
|
+
- changed-files:
|
|
23
|
+
- any-glob-to-any-file:
|
|
24
|
+
- tests/**
|
|
25
|
+
|
|
26
|
+
python:
|
|
27
|
+
- changed-files:
|
|
28
|
+
- any-glob-to-any-file:
|
|
29
|
+
- src/**
|
|
30
|
+
- scripts/**
|
|
31
|
+
|
|
32
|
+
dependencies:
|
|
33
|
+
- changed-files:
|
|
34
|
+
- any-glob-to-any-file:
|
|
35
|
+
- pyproject.toml
|
|
36
|
+
- uv.lock
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
# Repository labels. Synced by crazy-max/ghaction-github-labeler on push to main.
|
|
3
|
+
- name: breaking
|
|
4
|
+
description: Breaking Changes
|
|
5
|
+
color: bfd4f2
|
|
6
|
+
- name: bug
|
|
7
|
+
description: Something isn't working
|
|
8
|
+
color: d73a4a
|
|
9
|
+
- name: build
|
|
10
|
+
description: Build System and Dependencies
|
|
11
|
+
color: bfdadc
|
|
12
|
+
- name: ci
|
|
13
|
+
description: Continuous Integration
|
|
14
|
+
color: 4a97d6
|
|
15
|
+
- name: dependencies
|
|
16
|
+
description: Pull requests that update a dependency file
|
|
17
|
+
color: 0366d6
|
|
18
|
+
- name: dependabot
|
|
19
|
+
description: Dependabot updates
|
|
20
|
+
color: 0366d6
|
|
21
|
+
- name: deps
|
|
22
|
+
description: Dependency updates (legacy alias)
|
|
23
|
+
color: 0366d6
|
|
24
|
+
- name: documentation
|
|
25
|
+
description: Improvements or additions to documentation
|
|
26
|
+
color: 0075ca
|
|
27
|
+
- name: duplicate
|
|
28
|
+
description: This issue or pull request already exists
|
|
29
|
+
color: cfd3d7
|
|
30
|
+
- name: enhancement
|
|
31
|
+
description: New feature or request
|
|
32
|
+
color: a2eeef
|
|
33
|
+
- name: github_actions
|
|
34
|
+
description: Pull requests that update Github_actions code
|
|
35
|
+
color: "000000"
|
|
36
|
+
- name: good first issue
|
|
37
|
+
description: Good for newcomers
|
|
38
|
+
color: 7057ff
|
|
39
|
+
- name: help wanted
|
|
40
|
+
description: Extra attention is needed
|
|
41
|
+
color: 008672
|
|
42
|
+
- name: invalid
|
|
43
|
+
description: This doesn't seem right
|
|
44
|
+
color: e4e669
|
|
45
|
+
- name: performance
|
|
46
|
+
description: Performance
|
|
47
|
+
color: "016175"
|
|
48
|
+
- name: py-atmos-serial
|
|
49
|
+
description: py-atmos-serial repository
|
|
50
|
+
color: 1d76db
|
|
51
|
+
- name: python
|
|
52
|
+
description: Pull requests that update Python code
|
|
53
|
+
color: 2b67c6
|
|
54
|
+
- name: python:uv
|
|
55
|
+
description: uv lockfile or Python tooling updates
|
|
56
|
+
color: 2b67c6
|
|
57
|
+
- name: question
|
|
58
|
+
description: Further information is requested
|
|
59
|
+
color: d876e3
|
|
60
|
+
- name: refactoring
|
|
61
|
+
description: Refactoring
|
|
62
|
+
color: ef67c4
|
|
63
|
+
- name: removal
|
|
64
|
+
description: Removals and Deprecations
|
|
65
|
+
color: 9ae7ea
|
|
66
|
+
- name: renovate
|
|
67
|
+
description: Renovate dependency updates
|
|
68
|
+
color: 1d76db
|
|
69
|
+
- name: security
|
|
70
|
+
description: Security related
|
|
71
|
+
color: ee0701
|
|
72
|
+
- name: style
|
|
73
|
+
description: Style
|
|
74
|
+
color: c120e5
|
|
75
|
+
- name: testing
|
|
76
|
+
description: Testing
|
|
77
|
+
color: b1fc6f
|
|
78
|
+
- name: wontfix
|
|
79
|
+
description: This will not be worked on
|
|
80
|
+
color: ffffff
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": [
|
|
3
|
+
"config:recommended"
|
|
4
|
+
],
|
|
5
|
+
"timezone": "Europe/Warsaw",
|
|
6
|
+
"dependencyDashboard": true,
|
|
7
|
+
"prConcurrentLimit": 4,
|
|
8
|
+
"minimumReleaseAge": "7 days",
|
|
9
|
+
"enabledManagers": [
|
|
10
|
+
"pep621"
|
|
11
|
+
],
|
|
12
|
+
"lockFileMaintenance": {
|
|
13
|
+
"enabled": true,
|
|
14
|
+
"automerge": true,
|
|
15
|
+
"schedule": [
|
|
16
|
+
"* 0-5 * * 6"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"packageRules": [
|
|
20
|
+
{
|
|
21
|
+
"matchManagers": [
|
|
22
|
+
"pep621"
|
|
23
|
+
],
|
|
24
|
+
"matchDepTypes": [
|
|
25
|
+
"project.dependencies"
|
|
26
|
+
],
|
|
27
|
+
"groupName": "python runtime deps",
|
|
28
|
+
"groupSlug": "python-runtime-deps",
|
|
29
|
+
"minimumReleaseAge": "7 days"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"matchManagers": [
|
|
33
|
+
"pep621"
|
|
34
|
+
],
|
|
35
|
+
"matchDepTypes": [
|
|
36
|
+
"project.optional-dependencies",
|
|
37
|
+
"dependency-groups",
|
|
38
|
+
"build-system.requires"
|
|
39
|
+
],
|
|
40
|
+
"groupName": "python dev/test/docs deps",
|
|
41
|
+
"groupSlug": "python-dev-deps",
|
|
42
|
+
"minimumReleaseAge": "7 days"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"matchManagers": [
|
|
46
|
+
"pep621"
|
|
47
|
+
],
|
|
48
|
+
"matchUpdateTypes": [
|
|
49
|
+
"minor",
|
|
50
|
+
"patch"
|
|
51
|
+
],
|
|
52
|
+
"automerge": true,
|
|
53
|
+
"minimumReleaseAge": "7 days"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"labels": [
|
|
57
|
+
"dependencies",
|
|
58
|
+
"renovate"
|
|
59
|
+
]
|
|
60
|
+
}
|