mcp-google-tasks 0.2.0__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.
Files changed (64) hide show
  1. mcp_google_tasks-0.2.0/.dockerignore +13 -0
  2. mcp_google_tasks-0.2.0/.env.example +54 -0
  3. mcp_google_tasks-0.2.0/.github/dependabot.yml +28 -0
  4. mcp_google_tasks-0.2.0/.github/workflows/ci.yml +159 -0
  5. mcp_google_tasks-0.2.0/.github/workflows/container.yml +83 -0
  6. mcp_google_tasks-0.2.0/.github/workflows/release.yml +75 -0
  7. mcp_google_tasks-0.2.0/.gitignore +237 -0
  8. mcp_google_tasks-0.2.0/.ignoreobotcatalogs +5 -0
  9. mcp_google_tasks-0.2.0/.pre-commit-config.yaml +33 -0
  10. mcp_google_tasks-0.2.0/.python-version +1 -0
  11. mcp_google_tasks-0.2.0/.taplo.toml +9 -0
  12. mcp_google_tasks-0.2.0/AGENTS.md +81 -0
  13. mcp_google_tasks-0.2.0/Dockerfile +90 -0
  14. mcp_google_tasks-0.2.0/LICENSE +201 -0
  15. mcp_google_tasks-0.2.0/PKG-INFO +278 -0
  16. mcp_google_tasks-0.2.0/README.md +242 -0
  17. mcp_google_tasks-0.2.0/catalog/google-tasks.yaml +80 -0
  18. mcp_google_tasks-0.2.0/contrib/kubernetes/README.md +81 -0
  19. mcp_google_tasks-0.2.0/contrib/kubernetes/base/deployment.yaml +72 -0
  20. mcp_google_tasks-0.2.0/contrib/kubernetes/base/ingress.yaml +30 -0
  21. mcp_google_tasks-0.2.0/contrib/kubernetes/base/kustomization.yaml +39 -0
  22. mcp_google_tasks-0.2.0/contrib/kubernetes/base/namespace.yaml +7 -0
  23. mcp_google_tasks-0.2.0/contrib/kubernetes/base/service.yaml +10 -0
  24. mcp_google_tasks-0.2.0/contrib/kubernetes/oauth-proxy/deployment-patch.yaml +20 -0
  25. mcp_google_tasks-0.2.0/contrib/kubernetes/oauth-proxy/kustomization.yaml +39 -0
  26. mcp_google_tasks-0.2.0/contrib/kubernetes/oauth-proxy/pvc.yaml +9 -0
  27. mcp_google_tasks-0.2.0/contrib/kubernetes/oauth-proxy/secrets.env.example +7 -0
  28. mcp_google_tasks-0.2.0/docs/DESIGN.md +257 -0
  29. mcp_google_tasks-0.2.0/docs/ROADMAP.md +178 -0
  30. mcp_google_tasks-0.2.0/docs/authentication.md +169 -0
  31. mcp_google_tasks-0.2.0/docs/configuration.md +131 -0
  32. mcp_google_tasks-0.2.0/docs/deployment-obot.md +199 -0
  33. mcp_google_tasks-0.2.0/docs/development.md +183 -0
  34. mcp_google_tasks-0.2.0/docs/specs/0001-restructure-for-obot.md +141 -0
  35. mcp_google_tasks-0.2.0/docs/tools.md +239 -0
  36. mcp_google_tasks-0.2.0/pyproject.toml +165 -0
  37. mcp_google_tasks-0.2.0/src/mcp_google_tasks/__init__.py +3 -0
  38. mcp_google_tasks-0.2.0/src/mcp_google_tasks/__main__.py +6 -0
  39. mcp_google_tasks-0.2.0/src/mcp_google_tasks/api.py +567 -0
  40. mcp_google_tasks-0.2.0/src/mcp_google_tasks/auth.py +163 -0
  41. mcp_google_tasks-0.2.0/src/mcp_google_tasks/cli.py +88 -0
  42. mcp_google_tasks-0.2.0/src/mcp_google_tasks/config.py +384 -0
  43. mcp_google_tasks-0.2.0/src/mcp_google_tasks/credentials.py +229 -0
  44. mcp_google_tasks-0.2.0/src/mcp_google_tasks/errors.py +47 -0
  45. mcp_google_tasks-0.2.0/src/mcp_google_tasks/logs.py +92 -0
  46. mcp_google_tasks-0.2.0/src/mcp_google_tasks/models.py +126 -0
  47. mcp_google_tasks-0.2.0/src/mcp_google_tasks/py.typed +0 -0
  48. mcp_google_tasks-0.2.0/src/mcp_google_tasks/server.py +149 -0
  49. mcp_google_tasks-0.2.0/src/mcp_google_tasks/storage.py +65 -0
  50. mcp_google_tasks-0.2.0/src/mcp_google_tasks/tools.py +608 -0
  51. mcp_google_tasks-0.2.0/tests/__init__.py +1 -0
  52. mcp_google_tasks-0.2.0/tests/conftest.py +657 -0
  53. mcp_google_tasks-0.2.0/tests/test_api.py +575 -0
  54. mcp_google_tasks-0.2.0/tests/test_auth.py +460 -0
  55. mcp_google_tasks-0.2.0/tests/test_cli.py +164 -0
  56. mcp_google_tasks-0.2.0/tests/test_config.py +585 -0
  57. mcp_google_tasks-0.2.0/tests/test_credentials.py +349 -0
  58. mcp_google_tasks-0.2.0/tests/test_logs.py +146 -0
  59. mcp_google_tasks-0.2.0/tests/test_main.py +25 -0
  60. mcp_google_tasks-0.2.0/tests/test_package.py +37 -0
  61. mcp_google_tasks-0.2.0/tests/test_server.py +298 -0
  62. mcp_google_tasks-0.2.0/tests/test_storage.py +174 -0
  63. mcp_google_tasks-0.2.0/tests/test_tools.py +868 -0
  64. mcp_google_tasks-0.2.0/uv.lock +1774 -0
@@ -0,0 +1,13 @@
1
+ # Allowlist: the build context holds only what the Dockerfile copies, so secrets (.env,
2
+ # tokens), the local venv and caches can never leak into an image layer.
3
+ *
4
+ !pyproject.toml
5
+ !uv.lock
6
+ !README.md
7
+ !LICENSE
8
+ !src/
9
+
10
+ # Re-exclude build litter inside the allowed tree.
11
+ **/__pycache__
12
+ **/*.py[cod]
13
+ **/.DS_Store
@@ -0,0 +1,54 @@
1
+ # mcp-google-tasks environment. Copy to .env (untracked) and uncomment the section for your
2
+ # mode. Every value here is a placeholder. Empty values count as unset; a line left with a
3
+ # <placeholder> is read literally, so keep unused lines commented out. Comments go on their
4
+ # own lines: `docker run --env-file` does not strip trailing comments from values.
5
+ # Reference: docs/configuration.md
6
+
7
+ # --- Common ---------------------------------------------------------------------------------
8
+ # Transport: http (alias streamable-http) or stdio.
9
+ # MCP_TRANSPORT=http
10
+ # Auth mode: token, resource-server or oauth-proxy.
11
+ # MCP_AUTH_MODE=token
12
+ # Bind address; the container image sets 0.0.0.0.
13
+ # MCP_HOST=127.0.0.1
14
+ # MCP_PORT=8000
15
+ # MCP_BASE_URL=https://tasks.example.com
16
+ # Log level on stderr: debug, info, warning or error.
17
+ # MCP_LOG_LEVEL=info
18
+ # true/false (also 1/0, yes/no, on/off); any other value is a startup error.
19
+ # GOOGLE_TASKS_READONLY=false
20
+
21
+ # Google OAuth Web client from the Google Cloud console.
22
+ # GOOGLE_OAUTH_CLIENT_ID=<client-id>.apps.googleusercontent.com
23
+ # GOOGLE_OAUTH_CLIENT_SECRET=<client-secret>
24
+
25
+ # --- token mode: single user, stdio or http -------------------------------------------------
26
+ # MCP_AUTH_MODE=token
27
+ # GOOGLE_OAUTH_REFRESH_TOKEN=<refresh-token>
28
+ # Optional; used until Google rejects it.
29
+ # GOOGLE_OAUTH_ACCESS_TOKEN=<access-token>
30
+ # HTTP only: clients must send it as "Authorization: Bearer <value>".
31
+ # MCP_AUTH_TOKEN=<long-random-string>
32
+
33
+ # --- resource-server mode: multi user behind Obot Remote + Static OAuth, http ---------------
34
+ # MCP_AUTH_MODE=resource-server
35
+ # MCP_BASE_URL=https://tasks.example.com
36
+ # Accepted token audience; GOOGLE_OAUTH_AUDIENCE (comma-separated) overrides it.
37
+ # GOOGLE_OAUTH_CLIENT_ID=<client-id>.apps.googleusercontent.com
38
+ # GOOGLE_OAUTH_AUDIENCE=<client-id>.apps.googleusercontent.com
39
+ # TOKEN_CACHE_TTL_SECONDS=300
40
+
41
+ # --- oauth-proxy mode: multi user, the server runs Google sign-in, http ---------------------
42
+ # MCP_AUTH_MODE=oauth-proxy
43
+ # MCP_BASE_URL=https://tasks.example.com
44
+ # GOOGLE_OAUTH_CLIENT_ID=<client-id>.apps.googleusercontent.com
45
+ # GOOGLE_OAUTH_CLIENT_SECRET=<client-secret>
46
+ # GOOGLE_OAUTH_REDIRECT_PATH=/auth/callback
47
+ # JWT_SIGNING_KEY=<long-random-string>
48
+ # Storage: default, filetree or redis.
49
+ # TOKEN_STORAGE_BACKEND=filetree
50
+ # STORAGE_ENCRYPTION_KEY=<fernet-key>
51
+ # TOKEN_STORAGE_DIR=/data/oauth-tokens
52
+ # REDIS_URL=redis://redis.example.com:6379/0
53
+ # STORAGE_KEY_PREFIX=<prefix>
54
+ # MCP_ALLOWED_CLIENT_REDIRECT_URIS=https://obot.example.com/*
@@ -0,0 +1,28 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: github-actions
4
+ directory: /
5
+ schedule:
6
+ interval: weekly
7
+ commit-message:
8
+ prefix: ci
9
+ - package-ecosystem: uv
10
+ directory: /
11
+ schedule:
12
+ interval: weekly
13
+ commit-message:
14
+ prefix: build
15
+ groups:
16
+ python-dependencies:
17
+ patterns: ["*"]
18
+ # Base images in the Dockerfile (python:3.15-slim and the pinned uv image). A Python
19
+ # bump must also change UV_PYTHON in the Dockerfile, so it needs a manual follow-up.
20
+ - package-ecosystem: docker
21
+ directory: /
22
+ schedule:
23
+ interval: weekly
24
+ commit-message:
25
+ prefix: build
26
+ groups:
27
+ container-images:
28
+ patterns: ["*"]
@@ -0,0 +1,159 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ # Lets the release workflow run the same checks before publishing.
8
+ workflow_call:
9
+
10
+ permissions:
11
+ contents: read
12
+
13
+ concurrency:
14
+ group: ${{ github.workflow }}-${{ github.ref }}
15
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
16
+
17
+ jobs:
18
+ lint:
19
+ name: Lint, format and type-check
20
+ runs-on: ubuntu-latest
21
+ steps:
22
+ - uses: actions/checkout@v7
23
+ - uses: astral-sh/setup-uv@v10.4.0
24
+ with:
25
+ enable-cache: true
26
+ - name: Install dependencies
27
+ run: uv sync --locked
28
+ - name: Run pre-commit hooks (ruff, rumdl, taplo, ty)
29
+ run: uv run pre-commit run --all-files --show-diff-on-failure
30
+
31
+ test:
32
+ name: Test (${{ matrix.os }}, Python ${{ matrix.python }})
33
+ runs-on: ${{ matrix.os }}
34
+ permissions:
35
+ contents: read
36
+ # For the coverage comment on pull requests.
37
+ pull-requests: write
38
+ strategy:
39
+ fail-fast: false
40
+ matrix:
41
+ # Every supported version on Linux (requires-python is >=3.12); the newest on macOS.
42
+ os: [ubuntu-latest]
43
+ python: ["3.12", "3.13", "3.14", "3.15"]
44
+ include:
45
+ - os: macos-latest
46
+ python: "3.15"
47
+ steps:
48
+ - uses: actions/checkout@v7
49
+ - uses: astral-sh/setup-uv@v10.4.0
50
+ with:
51
+ enable-cache: true
52
+ # Sets UV_PYTHON for the steps below, overriding .python-version.
53
+ python-version: ${{ matrix.python }}
54
+ - name: Install dependencies
55
+ run: uv sync --locked
56
+ - name: Run tests with coverage (fails below the threshold in pyproject.toml)
57
+ # The JUnit and Cobertura XML files feed the pull request comment below.
58
+ run: uv run pytest --junitxml=pytest.xml --cov-report=xml:coverage.xml
59
+ - name: Write coverage to the job summary
60
+ if: ${{ !cancelled() }}
61
+ run: |
62
+ {
63
+ echo "### Coverage (${{ matrix.os }}, Python ${{ matrix.python }})"
64
+ echo
65
+ uv run coverage report --format=markdown --skip-covered --skip-empty
66
+ } >> "$GITHUB_STEP_SUMMARY"
67
+ - name: Comment test results and coverage on the pull request
68
+ # One comment per pull request, updated on each push; from one matrix job only, to
69
+ # avoid duplicate comments. Skipped for forks, whose token cannot write comments.
70
+ if: >-
71
+ ${{ !cancelled()
72
+ && github.event_name == 'pull_request'
73
+ && matrix.os == 'ubuntu-latest'
74
+ && matrix.python == '3.15'
75
+ && github.event.pull_request.head.repo.full_name == github.repository }}
76
+ uses: MishaKav/pytest-coverage-comment@v1.13.1
77
+ with:
78
+ pytest-xml-coverage-path: coverage.xml
79
+ junitxml-path: pytest.xml
80
+ junitxml-title: Tests
81
+ # The threshold is 100%, so the table lists only files that fall short.
82
+ xml-skip-covered: true
83
+ show-failed-tests: true
84
+ annotate-missing-lines: true
85
+
86
+ # One stable check name for branch rules, however the test matrix changes: require
87
+ # "Tests", not the individual matrix jobs.
88
+ tests:
89
+ name: Tests
90
+ needs: test
91
+ if: ${{ always() }}
92
+ runs-on: ubuntu-latest
93
+ steps:
94
+ - name: Every matrix job passed
95
+ env:
96
+ RESULT: ${{ needs.test.result }}
97
+ run: |
98
+ echo "Test matrix result: ${RESULT}"
99
+ test "${RESULT}" = success
100
+
101
+ build:
102
+ name: Build sdist and wheel
103
+ runs-on: ubuntu-latest
104
+ steps:
105
+ - uses: actions/checkout@v7
106
+ - uses: astral-sh/setup-uv@v10.4.0
107
+ with:
108
+ enable-cache: true
109
+ - name: Build
110
+ run: uv build
111
+ - name: Install the wheel into a clean environment and run it
112
+ run: |
113
+ # The oldest supported version, to catch a dependency that dropped it.
114
+ uv venv --python 3.12 /tmp/wheel-check
115
+ uv pip install --python /tmp/wheel-check dist/*.whl
116
+ /tmp/wheel-check/bin/mcp-google-tasks --version
117
+ - uses: actions/upload-artifact@v7
118
+ with:
119
+ name: dist
120
+ path: dist/
121
+ if-no-files-found: error
122
+
123
+ container:
124
+ name: Build and smoke-test container image
125
+ runs-on: ubuntu-latest
126
+ steps:
127
+ - uses: actions/checkout@v7
128
+ - uses: docker/setup-buildx-action@v4
129
+ - name: Build image (local only, not pushed)
130
+ uses: docker/build-push-action@v7
131
+ with:
132
+ context: .
133
+ push: false
134
+ load: true
135
+ tags: mcp-google-tasks:ci
136
+ cache-from: type=gha,scope=ci
137
+ cache-to: type=gha,scope=ci,mode=max
138
+ - name: Run the image and wait for /health
139
+ # A dummy access token is enough: the server starts without calling Google, and
140
+ # /health is unauthenticated. token mode is required because http transport
141
+ # otherwise defaults to oauth-proxy, which needs real OAuth client settings.
142
+ run: |
143
+ docker run --detach --name mcp-smoke --publish 8000:8000 \
144
+ --env MCP_AUTH_MODE=token \
145
+ --env GOOGLE_OAUTH_ACCESS_TOKEN=dummy \
146
+ mcp-google-tasks:ci
147
+ for _ in $(seq 1 30); do
148
+ if [ "$(curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:8000/health)" = "200" ]; then
149
+ echo "Health check passed"
150
+ exit 0
151
+ fi
152
+ sleep 1
153
+ done
154
+ echo "::error::/health did not return 200 within 30 seconds"
155
+ docker logs mcp-smoke
156
+ exit 1
157
+ - name: Remove the container
158
+ if: always()
159
+ run: docker rm --force mcp-smoke || true
@@ -0,0 +1,83 @@
1
+ name: Container
2
+
3
+ # Publishes the image to ghcr.io/<owner>/<repo>:
4
+ # - a pushed vX.Y.Z tag is a release: {{version}}, {{major}}.{{minor}} and latest.
5
+ # - a push to main is a rolling build: edge plus sha-<short sha> (edge is the Docker
6
+ # convention for "newest build of the default branch", not necessarily stable).
7
+ # - workflow_dispatch rebuilds on demand from the selected ref (edge and sha tags on main).
8
+ # Every pushed digest gets a signed build-provenance attestation, verifiable with
9
+ # `gh attestation verify oci://ghcr.io/<owner>/<repo>:<tag> --owner <owner>`.
10
+ on:
11
+ push:
12
+ branches: [main]
13
+ tags: ["v*"]
14
+ workflow_dispatch:
15
+
16
+ permissions:
17
+ contents: read
18
+
19
+ concurrency:
20
+ group: ${{ github.workflow }}-${{ github.ref }}
21
+ cancel-in-progress: false
22
+
23
+ env:
24
+ REGISTRY: ghcr.io
25
+ IMAGE_NAME: ${{ github.repository }}
26
+
27
+ jobs:
28
+ publish:
29
+ name: Build and push multi-arch image
30
+ runs-on: ubuntu-latest
31
+ permissions:
32
+ contents: read
33
+ packages: write
34
+ # id-token and attestations are needed to sign and store the provenance attestation.
35
+ id-token: write
36
+ attestations: write
37
+ steps:
38
+ - uses: actions/checkout@v7
39
+
40
+ - uses: docker/setup-qemu-action@v4
41
+
42
+ - uses: docker/setup-buildx-action@v4
43
+
44
+ - uses: docker/login-action@v4
45
+ with:
46
+ registry: ${{ env.REGISTRY }}
47
+ username: ${{ github.actor }}
48
+ password: ${{ secrets.GITHUB_TOKEN }}
49
+
50
+ - id: meta
51
+ uses: docker/metadata-action@v6
52
+ with:
53
+ images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
54
+ # latest only from semver tags (auto would also add it for a plain main push).
55
+ flavor: |
56
+ latest=false
57
+ tags: |
58
+ type=semver,pattern={{version}}
59
+ type=semver,pattern={{major}}.{{minor}}
60
+ type=raw,value=latest,enable=${{ github.ref_type == 'tag' }}
61
+ type=edge,branch=main
62
+ type=sha,enable=${{ github.ref_type == 'branch' }}
63
+
64
+ - id: build
65
+ uses: docker/build-push-action@v7
66
+ with:
67
+ context: .
68
+ platforms: linux/amd64,linux/arm64
69
+ push: true
70
+ tags: ${{ steps.meta.outputs.tags }}
71
+ labels: ${{ steps.meta.outputs.labels }}
72
+ annotations: ${{ steps.meta.outputs.annotations }}
73
+ provenance: mode=max
74
+ sbom: true
75
+ cache-from: type=gha,scope=publish
76
+ cache-to: type=gha,scope=publish,mode=max
77
+
78
+ - name: Attest build provenance
79
+ uses: actions/attest-build-provenance@v4
80
+ with:
81
+ subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
82
+ subject-digest: ${{ steps.build.outputs.digest }}
83
+ push-to-registry: true
@@ -0,0 +1,75 @@
1
+ name: Release
2
+
3
+ # Push a tag like v0.2.0 (matching __version__) to test, build, publish the sdist and wheel
4
+ # to PyPI, then publish a GitHub release with them attached. The container image is
5
+ # published separately by container.yml.
6
+ on:
7
+ push:
8
+ tags: ["v*.*.*"]
9
+
10
+ permissions:
11
+ contents: read
12
+
13
+ jobs:
14
+ verify-version:
15
+ name: Tag matches package version
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - uses: actions/checkout@v7
19
+ - name: Compare tag with __version__
20
+ env:
21
+ TAG: ${{ github.ref_name }}
22
+ run: |
23
+ version="$(sed -nE 's/^__version__ = "([^"]+)"$/\1/p' src/mcp_google_tasks/__init__.py)"
24
+ if [ "v${version}" != "${TAG}" ]; then
25
+ echo "::error::Tag ${TAG} does not match __version__ ${version}"
26
+ exit 1
27
+ fi
28
+
29
+ ci:
30
+ name: CI
31
+ needs: verify-version
32
+ uses: ./.github/workflows/ci.yml
33
+ # A called workflow may not ask for more than its caller grants, and ci.yml's test job
34
+ # asks for pull-requests: write (its comment step runs only on pull requests).
35
+ permissions:
36
+ contents: read
37
+ pull-requests: write
38
+
39
+ # PyPI first: an upload cannot be redone under the same version, while a failed GitHub
40
+ # release can simply be re-run. Uses trusted publishing (OIDC), so there is no API token;
41
+ # PyPI's publisher for this project names this workflow file and the `pypi` environment.
42
+ pypi:
43
+ name: Publish to PyPI
44
+ needs: ci
45
+ runs-on: ubuntu-latest
46
+ environment:
47
+ name: pypi
48
+ url: https://pypi.org/project/mcp-google-tasks/
49
+ permissions:
50
+ id-token: write
51
+ steps:
52
+ - uses: actions/download-artifact@v8
53
+ with:
54
+ name: dist
55
+ path: dist/
56
+ # Uploads digital attestations alongside the files by default.
57
+ - uses: pypa/gh-action-pypi-publish@v1.14.3
58
+
59
+ release:
60
+ name: Publish GitHub release
61
+ needs: pypi
62
+ runs-on: ubuntu-latest
63
+ permissions:
64
+ contents: write
65
+ steps:
66
+ - uses: actions/checkout@v7
67
+ - uses: actions/download-artifact@v8
68
+ with:
69
+ name: dist
70
+ path: dist/
71
+ - name: Create release with build artifacts
72
+ env:
73
+ GH_TOKEN: ${{ github.token }}
74
+ TAG: ${{ github.ref_name }}
75
+ run: gh release create "${TAG}" dist/* --title "${TAG}" --generate-notes --verify-tag
@@ -0,0 +1,237 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ pytest.xml
49
+ *.cover
50
+ *.py.cover
51
+ *.lcov
52
+ .hypothesis/
53
+ .pytest_cache/
54
+ cover/
55
+
56
+ # Translations
57
+ *.mo
58
+ *.pot
59
+
60
+ # Django stuff:
61
+ *.log
62
+ local_settings.py
63
+ db.sqlite3
64
+ db.sqlite3-journal
65
+
66
+ # Flask stuff:
67
+ instance/
68
+ .webassets-cache
69
+
70
+ # Scrapy stuff:
71
+ .scrapy
72
+
73
+ # Sphinx documentation
74
+ docs/_build/
75
+
76
+ # PyBuilder
77
+ .pybuilder/
78
+ target/
79
+
80
+ # Jupyter Notebook
81
+ .ipynb_checkpoints
82
+
83
+ # IPython
84
+ profile_default/
85
+ ipython_config.py
86
+
87
+ # pyenv
88
+ # For a library or package, you might want to ignore these files since the code is
89
+ # intended to run in multiple environments; otherwise, check them in:
90
+ # .python-version
91
+
92
+ # pipenv
93
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
94
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
95
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
96
+ # install all needed dependencies.
97
+ # Pipfile.lock
98
+
99
+ # uv
100
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
101
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
102
+ # commonly ignored for libraries.
103
+ # uv.lock
104
+
105
+ # poetry
106
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
107
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
108
+ # commonly ignored for libraries.
109
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
110
+ # poetry.lock
111
+ # poetry.toml
112
+
113
+ # pdm
114
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
115
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
116
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
117
+ # pdm.lock
118
+ # pdm.toml
119
+ .pdm-python
120
+ .pdm-build/
121
+
122
+ # pixi
123
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
124
+ # pixi.lock
125
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
126
+ # in the .venv directory. It is recommended not to include this directory in version control.
127
+ .pixi/*
128
+ !.pixi/config.toml
129
+
130
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
131
+ __pypackages__/
132
+
133
+ # Celery stuff
134
+ celerybeat-schedule*
135
+ celerybeat.pid
136
+
137
+ # Redis
138
+ *.rdb
139
+ *.aof
140
+ *.pid
141
+
142
+ # RabbitMQ
143
+ mnesia/
144
+ rabbitmq/
145
+ rabbitmq-data/
146
+
147
+ # ActiveMQ
148
+ activemq-data/
149
+
150
+ # SageMath parsed files
151
+ *.sage.py
152
+
153
+ # Environments
154
+ .env
155
+ .envrc
156
+ .venv
157
+ env/
158
+ venv/
159
+ ENV/
160
+ env.bak/
161
+ venv.bak/
162
+
163
+ # Conda environments
164
+ conda-meta/
165
+
166
+ # Spyder project settings
167
+ .spyderproject
168
+ .spyproject
169
+
170
+ # Rope project settings
171
+ .ropeproject
172
+
173
+ # mkdocs/Zensical documentation
174
+ /site
175
+
176
+ # mypy
177
+ .mypy_cache/
178
+ .dmypy.json
179
+ dmypy.json
180
+
181
+ # Pyre type checker
182
+ .pyre/
183
+
184
+ # pytype static type analyzer
185
+ .pytype/
186
+
187
+ # Cython debug symbols
188
+ cython_debug/
189
+
190
+ # PyCharm
191
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
192
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
193
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
194
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
195
+ # .idea/
196
+
197
+ # Abstra
198
+ # Abstra is an AI-powered process automation framework.
199
+ # Ignore directories containing user credentials, local state, and settings.
200
+ # Learn more at https://abstra.io/docs
201
+ .abstra/
202
+
203
+ # Visual Studio Code
204
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore that
205
+ # can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
206
+ # and can be added to the global gitignore or merged into this file. However, if you prefer, you
207
+ # could uncomment the following to ignore the entire vscode folder
208
+ # .vscode/
209
+ # Temporary file for partial code execution
210
+ tempCodeRunnerFile.py
211
+
212
+ # Ruff stuff:
213
+ .ruff_cache/
214
+
215
+ # PyPI configuration file
216
+ .pypirc
217
+
218
+ # Marimo
219
+ marimo/_static/
220
+ marimo/_lsp/
221
+ __marimo__/
222
+
223
+ # Streamlit
224
+ .streamlit/secrets.toml
225
+
226
+ # House scaffold additions
227
+ .rumdl_cache/
228
+
229
+ # Never commit local environment details or secrets.
230
+ *.env
231
+ !.env.example
232
+ .secrets/
233
+ *.pem
234
+ config.toml
235
+
236
+ # Tracked on purpose (pins the interpreter for uv); overrides global ignores.
237
+ !.python-version
@@ -0,0 +1,5 @@
1
+ # Obot scans every *.yaml/*.yml/*.json outside hidden directories as a catalog entry; the
2
+ # only one is catalog/google-tasks.yaml. Hidden directories (.github) are skipped already.
3
+ .pre-commit-config.yaml
4
+ docs
5
+ contrib
@@ -0,0 +1,33 @@
1
+ # Install once with: uv run pre-commit install
2
+ # Refresh the pinned revisions with: uv run pre-commit autoupdate
3
+ repos:
4
+ - repo: https://github.com/astral-sh/ruff-pre-commit
5
+ rev: v0.17.6
6
+ hooks:
7
+ - id: ruff-check
8
+ args: [--fix]
9
+ - id: ruff-format
10
+
11
+ - repo: https://github.com/rvben/rumdl-pre-commit
12
+ rev: v0.3.5
13
+ hooks:
14
+ - id: rumdl-check
15
+ - id: rumdl-fmt
16
+
17
+ - repo: https://github.com/ComPWA/taplo-pre-commit
18
+ rev: v0.9.3
19
+ hooks:
20
+ - id: taplo-format
21
+ - id: taplo-lint
22
+ # Syntax-only: taplo cannot parse the current online schema catalog, and
23
+ # skipping it keeps the hook working without network access.
24
+ args: [--no-schema]
25
+
26
+ - repo: local
27
+ hooks:
28
+ - id: ty
29
+ name: ty (type check)
30
+ entry: uv run ty check
31
+ language: system
32
+ types: [python]
33
+ pass_filenames: false
@@ -0,0 +1 @@
1
+ 3.15