Skip to content

Commit 0e0e150

Browse files
Merge pull request #40 from pycalendar/chore/post-extraction-followup
chore: post-extraction cleanup: coverage, typing, Docker fixtures, docs
2 parents 69bf2af + d9247c7 commit 0e0e150

39 files changed

Lines changed: 2710 additions & 306 deletions
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
name: Bug report
3+
about: Create a bug report to help us improve calendaring-jmap
4+
title: '[Bug] '
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
<!-- This template is here to guide you and help us. If you can't complete everything here, that is fine. -->
10+
11+
## Describe the bug
12+
13+
<!-- A clear and concise description of the bug. -->
14+
15+
## To reproduce
16+
17+
<!-- Add the necessary steps and code examples to reproduce the issue on your machine. -->
18+
19+
```python
20+
from calendaring_jmap import get_jmap_client
21+
### ...
22+
```
23+
24+
Output:
25+
26+
<!-- Add logs, stack traces, or error outputs to help explain the issue. -->
27+
28+
```pycon
29+
30+
```
31+
32+
## Expected behavior
33+
34+
<!-- A clear and concise description of what you expected to happen. -->
35+
36+
## Environment
37+
38+
<!-- Complete the following information. -->
39+
40+
- [ ] Operating system: <!-- For example, Ubuntu 22, macOS Tahoe 26, Windows 10 -->
41+
- [ ] Python version: <!-- For example, Python 3.13 -->
42+
- [ ] calendaring-jmap version: <!-- Run `python3 -c 'from calendaring_jmap import __version__; print(__version__)'` -->
43+
- [ ] JMAP server: <!-- For example, Cyrus IMAP, Stalwart, Fastmail -->
44+
- [ ] Client: <!-- JMAPClient (sync) or AsyncJMAPClient (async) -->
45+
46+
## Additional context
47+
48+
<!-- Add any other context about the issue here, including related issues and pull requests. -->
49+
50+
- [ ] I tested it with the latest version.
51+
- [ ] If this involves a specific JMAP request or response, I included the relevant JSON, with any personal data removed.

‎.github/ISSUE_TEMPLATE/config.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SPDX-FileCopyrightText: 2026 calendaring-jmap contributors
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
3+
4+
blank_issues_enabled: true
5+
contact_links:
6+
- name: Discussions
7+
url: https://github.com/pycalendar/calendaring-jmap/discussions
8+
about: For questions, ideas, and community discussions
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Blank issue
3+
about: Unstructured template for anything not covered by bug reports
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
<!--
10+
This is an unstructured issue template to use if you don't need guidance.
11+
12+
Here are some hints, though.
13+
14+
- Show code.
15+
- Show logs, stack traces, error output, or other output that differs from what you expect.
16+
- If this involves a specific JMAP request or response, include the relevant JSON, with any personal data removed.
17+
- Add links to related issues or pull requests.
18+
19+
Thanks for taking your time to report this!
20+
-->

‎.github/pull_request_template.md‎

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<!--- SPDX-FileCopyrightText: 2026 calendaring-jmap contributors -->
2+
<!--- SPDX-License-Identifier: AGPL-3.0-or-later -->
3+
4+
<!--
5+
6+
INSTRUCTIONS
7+
8+
Fill out the pull request template as described below.
9+
10+
Do not edit or remove section headings as they are required, except "Additional information" which is optional.
11+
12+
Comments may be removed.
13+
Comments consist of the content between each pair of HTML comment delimiters, inclusively.
14+
15+
-->
16+
17+
## Linked issue
18+
19+
<!--
20+
Replace `ISSUE_NUMBER` with the issue number that your pull request addresses.
21+
This links the pull request to the related issue.
22+
23+
Choose the appropriate form:
24+
25+
- If you completely resolve the issue, then use `"Closes"`.
26+
This form will automatically close the related issue when the PR gets merged.
27+
- If you contribute to solving part of the issue, use "Contributes to".
28+
This form keeps the issue open for future work.
29+
-->
30+
31+
- Closes #ISSUE_NUMBER
32+
<!-- Change "Closes" to "Contributes to" above for a partial contribution. -->
33+
34+
<!--
35+
You may also link to open pull requests that address the same issue, if applicable.
36+
37+
- See #PULL_REQUEST_NUMBER
38+
-->
39+
40+
## Description
41+
42+
<!--
43+
Write a description of the fixes or improvements.
44+
-->
45+
46+
## Checklist
47+
48+
<!--
49+
Do not edit the checkbox list items.
50+
51+
To indicate that you completed an item, place an `x` inside the checkbox, such as `[x]`.
52+
-->
53+
54+
- [ ] I added a change log entry, following the [change log instructions](https://calendaring-jmap.readthedocs.io/en/latest/contribute.html#change-log).
55+
- [ ] I followed calendaring-jmap's [Artificial intelligence policy](https://calendaring-jmap.readthedocs.io/en/latest/contribute.html#artificial-intelligence-policy) and disclosed my AI use in my commit messages and change log entry, if applicable.
56+
- [ ] I added or updated tests, if applicable.
57+
- [ ] I ran and ensured all tests pass locally, following [Running tests](https://calendaring-jmap.readthedocs.io/en/latest/contribute.html#running-tests).
58+
- [ ] If this changes a client method, I updated both `JMAPClient` and `AsyncJMAPClient` to keep the sync/async surfaces in parity.
59+
- [ ] If this changes iCalendar↔JSCalendar conversion, I checked the change against [RFC 8984](https://www.rfc-editor.org/rfc/rfc8984) and added a round-trip test.
60+
- [ ] I ran the integration tests against Cyrus, Stalwart, or both, if the change touches client/server interaction.
61+
- [ ] I added or edited documentation as necessary.
62+
63+
## Additional information
64+
65+
<!--
66+
Upload screenshots, videos, links to documentation, or any other relevant information.
67+
-->

‎.github/workflows/tests.yml‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,26 @@ jobs:
6565
- name: Check code format
6666
run: ruff format --check .
6767

68+
mypy:
69+
name: Type check with mypy
70+
runs-on: ubuntu-latest
71+
steps:
72+
- name: Checkout
73+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
74+
with:
75+
persist-credentials: false
76+
77+
- name: Set up Python
78+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
79+
with:
80+
python-version: "3.13"
81+
82+
- name: Install dependencies
83+
run: pip install -e ".[dev]"
84+
85+
- name: Type check
86+
run: python -m mypy src/calendaring_jmap --ignore-missing-imports
87+
6888
test:
6989
name: Test on Python ${{ matrix.python-version }}
7090
runs-on: ubuntu-latest

‎.github/workflows/zizmor.yml‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# SPDX-FileCopyrightText: 2026 calendaring-jmap contributors
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
3+
4+
name: zizmor static analysis
5+
6+
on:
7+
pull_request:
8+
push:
9+
branches: [main]
10+
11+
concurrency:
12+
group: zizmor-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
zizmor:
20+
name: Static analysis
21+
runs-on: ubuntu-latest
22+
permissions:
23+
contents: read
24+
security-events: write # required to upload the SARIF results
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
28+
with:
29+
persist-credentials: false
30+
- name: Install zizmor
31+
run: pip install zizmor==1.30.1
32+
- name: Run zizmor
33+
run: zizmor --format sarif .github/workflows/ > zizmor-results.sarif
34+
- name: Upload SARIF file
35+
uses: github/codeql-action/upload-sarif@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
36+
with:
37+
sarif_file: zizmor-results.sarif

‎CODE_OF_CONDUCT.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<!--- SPDX-FileCopyrightText: 2026 calendaring-jmap contributors -->
2+
<!--- SPDX-License-Identifier: AGPL-3.0-or-later -->
3+
4+
# Contributor Covenant 3.0 Code of Conduct
5+
6+
calendaring-jmap follows the Contributor Covenant 3.0 Code of Conduct, which is hosted on the Python Calendaring Ecosystem website at the following link.
7+
8+
https://pycal.org/code-of-conduct/

‎CONTRIBUTING.md‎

Lines changed: 2 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,6 @@
11
<!--- SPDX-FileCopyrightText: 2026 calendaring-jmap contributors -->
22
<!--- SPDX-License-Identifier: AGPL-3.0-or-later -->
33

4-
# Contributing to calendaring-jmap
4+
# Contributing
55

6-
## Development setup
7-
8-
```bash
9-
git clone https://github.com/pycalendar/calendaring-jmap
10-
cd calendaring-jmap
11-
pip install -e ".[dev]"
12-
pre-commit install
13-
```
14-
15-
## Running tests
16-
17-
Unit tests (no server required):
18-
19-
```bash
20-
pytest src/calendaring_jmap/tests/test_jmap_unit.py
21-
```
22-
23-
Integration tests, against Cyrus IMAP via Docker:
24-
25-
```bash
26-
docker-compose -f tests/docker/cyrus/docker-compose.yml up -d
27-
pytest src/calendaring_jmap/tests/test_jmap_integration.py
28-
```
29-
30-
## Change log
31-
32-
If your PR changes behavior, add a news fragment. CI-only and internal-refactor PRs don't need one.
33-
34-
```bash
35-
touch news/<issue-number>.<type>.rst
36-
```
37-
38-
Where `<type>` is one of: `breaking`, `removal`, `feature`, `bugfix`, `documentation`, `deps`, `internal`, `chore`, `security`.
39-
40-
Write a short, user-facing description of the change inside the file. Fragments are collected into [CHANGES.rst](CHANGES.rst) at release time. Don't edit that file directly.
41-
42-
To preview what the change log will look like:
43-
44-
```bash
45-
towncrier build --draft --version 0.0.0
46-
```
47-
48-
If your PR genuinely doesn't need a fragment (CI, docs-only, internal refactor), ask a maintainer to add the `skip-changelog` label instead of skipping this silently.
49-
50-
## License
51-
52-
By contributing, you agree your contributions are licensed under AGPL-3.0-or-later, same as the rest of the project. See [LICENSE](LICENSE).
6+
See our [contributing guide](https://calendaring-jmap.readthedocs.io/en/latest/contribute.html) for complete information on how to contribute to calendaring-jmap.

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
Calendar operations over JMAP (RFC 8620 + draft-ietf-jmap-calendars).
77

8+
[![Documentation](https://readthedocs.org/projects/calendaring-jmap/badge/?version=stable)](https://calendaring-jmap.readthedocs.io/en/stable/)
89
[![Tests](https://github.com/pycalendar/calendaring-jmap/actions/workflows/tests.yml/badge.svg)](https://github.com/pycalendar/calendaring-jmap/actions/workflows/tests.yml)
10+
[![codecov](https://codecov.io/gh/pycalendar/calendaring-jmap/branch/main/graph/badge.svg)](https://codecov.io/gh/pycalendar/calendaring-jmap)
911
[![REUSE status](https://api.reuse.software/badge/github.com/pycalendar/calendaring-jmap)](https://api.reuse.software/info/github.com/pycalendar/calendaring-jmap)
1012
[![License: AGPL-3.0-or-later](https://img.shields.io/badge/License-AGPL%203.0--or--later-blue.svg)](LICENSE)
1113
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)

‎REUSE.toml‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,32 @@ precedence = "override"
1717
SPDX-FileCopyrightText = "2026 calendaring-jmap contributors"
1818
SPDX-License-Identifier = "AGPL-3.0-or-later"
1919

20+
# PEP 561 marker file, must be empty
21+
[[annotations]]
22+
path = "src/calendaring_jmap/py.typed"
23+
precedence = "override"
24+
SPDX-FileCopyrightText = "2026 calendaring-jmap contributors"
25+
SPDX-License-Identifier = "AGPL-3.0-or-later"
26+
2027
# Towncrier news fragments. short-lived, deleted once folded into
2128
# CHANGES.rst at release time. Not worth a header each.
2229
[[annotations]]
2330
path = "news/*"
2431
precedence = "override"
2532
SPDX-FileCopyrightText = "2026 calendaring-jmap contributors"
2633
SPDX-License-Identifier = "AGPL-3.0-or-later"
34+
35+
# JSON, no comment syntax available
36+
[[annotations]]
37+
path = "tests/docker/stalwart/config/config.json"
38+
precedence = "override"
39+
SPDX-FileCopyrightText = "2026 calendaring-jmap contributors"
40+
SPDX-License-Identifier = "AGPL-3.0-or-later"
41+
42+
# GitHub issue form templates: YAML frontmatter must stay the first thing
43+
# in the file for GitHub to parse it, so a leading comment isn't an option.
44+
[[annotations]]
45+
path = ".github/ISSUE_TEMPLATE/*.md"
46+
precedence = "override"
47+
SPDX-FileCopyrightText = "2026 calendaring-jmap contributors"
48+
SPDX-License-Identifier = "AGPL-3.0-or-later"

0 commit comments

Comments
 (0)