chiefofstaff 0.1.32__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 (139) hide show
  1. chiefofstaff-0.1.32/.github/CODEOWNERS +2 -0
  2. chiefofstaff-0.1.32/.github/ISSUE_TEMPLATE/bug_report.yml +28 -0
  3. chiefofstaff-0.1.32/.github/ISSUE_TEMPLATE/config.yml +5 -0
  4. chiefofstaff-0.1.32/.github/ISSUE_TEMPLATE/feature_request.yml +15 -0
  5. chiefofstaff-0.1.32/.github/dependabot.yml +18 -0
  6. chiefofstaff-0.1.32/.github/pull_request_template.md +12 -0
  7. chiefofstaff-0.1.32/.github/workflows/copilot.yml +40 -0
  8. chiefofstaff-0.1.32/.github/workflows/release.yml +44 -0
  9. chiefofstaff-0.1.32/.github/workflows/test.yml +160 -0
  10. chiefofstaff-0.1.32/.gitignore +17 -0
  11. chiefofstaff-0.1.32/CHANGELOG.md +1191 -0
  12. chiefofstaff-0.1.32/CODE_OF_CONDUCT.md +11 -0
  13. chiefofstaff-0.1.32/CONTRIBUTING.md +138 -0
  14. chiefofstaff-0.1.32/LICENSE +21 -0
  15. chiefofstaff-0.1.32/PKG-INFO +154 -0
  16. chiefofstaff-0.1.32/README.md +115 -0
  17. chiefofstaff-0.1.32/README.zh-CN.md +103 -0
  18. chiefofstaff-0.1.32/SECURITY.md +113 -0
  19. chiefofstaff-0.1.32/docs/ARCHITECTURE.md +223 -0
  20. chiefofstaff-0.1.32/docs/good-first-issues.md +25 -0
  21. chiefofstaff-0.1.32/docs/guide.md +770 -0
  22. chiefofstaff-0.1.32/docs/images/home.png +0 -0
  23. chiefofstaff-0.1.32/eslint.config.mjs +26 -0
  24. chiefofstaff-0.1.32/pyproject.toml +120 -0
  25. chiefofstaff-0.1.32/scripts/browser_smoke.py +282 -0
  26. chiefofstaff-0.1.32/scripts/demo_smoke.py +342 -0
  27. chiefofstaff-0.1.32/scripts/fake_bot_mcp.py +32 -0
  28. chiefofstaff-0.1.32/scripts/fake_glean_mcp.py +23 -0
  29. chiefofstaff-0.1.32/scripts/fake_oauth_mcp.py +190 -0
  30. chiefofstaff-0.1.32/scripts/fake_slack_mcp.py +295 -0
  31. chiefofstaff-0.1.32/scripts/fake_terminal.py +33 -0
  32. chiefofstaff-0.1.32/scripts/live_e2e.py +1634 -0
  33. chiefofstaff-0.1.32/scripts/live_edges.py +267 -0
  34. chiefofstaff-0.1.32/scripts/live_memory.py +437 -0
  35. chiefofstaff-0.1.32/scripts/live_more.py +814 -0
  36. chiefofstaff-0.1.32/scripts/live_parity.py +546 -0
  37. chiefofstaff-0.1.32/scripts/live_routing.py +221 -0
  38. chiefofstaff-0.1.32/scripts/live_usecases.py +317 -0
  39. chiefofstaff-0.1.32/scripts/live_wide.py +4597 -0
  40. chiefofstaff-0.1.32/scripts/ui_edges.py +3215 -0
  41. chiefofstaff-0.1.32/scripts/ui_quality.py +590 -0
  42. chiefofstaff-0.1.32/slack-manifest.json +34 -0
  43. chiefofstaff-0.1.32/src/chiefofstaff/__init__.py +3 -0
  44. chiefofstaff-0.1.32/src/chiefofstaff/__main__.py +160 -0
  45. chiefofstaff-0.1.32/src/chiefofstaff/abilities.py +155 -0
  46. chiefofstaff-0.1.32/src/chiefofstaff/asks.py +861 -0
  47. chiefofstaff-0.1.32/src/chiefofstaff/backend.py +552 -0
  48. chiefofstaff-0.1.32/src/chiefofstaff/bus.py +57 -0
  49. chiefofstaff-0.1.32/src/chiefofstaff/catalog.py +67 -0
  50. chiefofstaff-0.1.32/src/chiefofstaff/checks.py +756 -0
  51. chiefofstaff-0.1.32/src/chiefofstaff/connector.py +1682 -0
  52. chiefofstaff-0.1.32/src/chiefofstaff/decisions.py +604 -0
  53. chiefofstaff-0.1.32/src/chiefofstaff/delivery.py +447 -0
  54. chiefofstaff-0.1.32/src/chiefofstaff/demo.py +759 -0
  55. chiefofstaff-0.1.32/src/chiefofstaff/digest.py +319 -0
  56. chiefofstaff-0.1.32/src/chiefofstaff/drafts.py +1593 -0
  57. chiefofstaff-0.1.32/src/chiefofstaff/envelope.py +171 -0
  58. chiefofstaff-0.1.32/src/chiefofstaff/events.py +722 -0
  59. chiefofstaff-0.1.32/src/chiefofstaff/focus.py +120 -0
  60. chiefofstaff-0.1.32/src/chiefofstaff/habits.py +741 -0
  61. chiefofstaff-0.1.32/src/chiefofstaff/learning.py +500 -0
  62. chiefofstaff-0.1.32/src/chiefofstaff/machine.py +60 -0
  63. chiefofstaff-0.1.32/src/chiefofstaff/models.py +531 -0
  64. chiefofstaff-0.1.32/src/chiefofstaff/notify.py +32 -0
  65. chiefofstaff-0.1.32/src/chiefofstaff/peers.py +346 -0
  66. chiefofstaff-0.1.32/src/chiefofstaff/policy.py +143 -0
  67. chiefofstaff-0.1.32/src/chiefofstaff/prompts.py +874 -0
  68. chiefofstaff-0.1.32/src/chiefofstaff/receipts.py +828 -0
  69. chiefofstaff-0.1.32/src/chiefofstaff/roles.py +3 -0
  70. chiefofstaff-0.1.32/src/chiefofstaff/runtime.py +3045 -0
  71. chiefofstaff-0.1.32/src/chiefofstaff/scripted.py +417 -0
  72. chiefofstaff-0.1.32/src/chiefofstaff/sources/__init__.py +49 -0
  73. chiefofstaff-0.1.32/src/chiefofstaff/sources/github.py +1242 -0
  74. chiefofstaff-0.1.32/src/chiefofstaff/sources/slack.py +778 -0
  75. chiefofstaff-0.1.32/src/chiefofstaff/state.py +150 -0
  76. chiefofstaff-0.1.32/src/chiefofstaff/static/app.js +208 -0
  77. chiefofstaff-0.1.32/src/chiefofstaff/static/artifacts.js +181 -0
  78. chiefofstaff-0.1.32/src/chiefofstaff/static/board.js +280 -0
  79. chiefofstaff-0.1.32/src/chiefofstaff/static/composer.js +135 -0
  80. chiefofstaff-0.1.32/src/chiefofstaff/static/diff.js +229 -0
  81. chiefofstaff-0.1.32/src/chiefofstaff/static/dom.js +283 -0
  82. chiefofstaff-0.1.32/src/chiefofstaff/static/drafts.js +854 -0
  83. chiefofstaff-0.1.32/src/chiefofstaff/static/files.js +33 -0
  84. chiefofstaff-0.1.32/src/chiefofstaff/static/inbox.js +680 -0
  85. chiefofstaff-0.1.32/src/chiefofstaff/static/index.html +356 -0
  86. chiefofstaff-0.1.32/src/chiefofstaff/static/mention.js +126 -0
  87. chiefofstaff-0.1.32/src/chiefofstaff/static/session.js +656 -0
  88. chiefofstaff-0.1.32/src/chiefofstaff/static/settings.js +918 -0
  89. chiefofstaff-0.1.32/src/chiefofstaff/static/sidebar.js +265 -0
  90. chiefofstaff-0.1.32/src/chiefofstaff/static/splitter.js +73 -0
  91. chiefofstaff-0.1.32/src/chiefofstaff/static/state.js +221 -0
  92. chiefofstaff-0.1.32/src/chiefofstaff/static/style.css +1457 -0
  93. chiefofstaff-0.1.32/src/chiefofstaff/static/tasks.js +1020 -0
  94. chiefofstaff-0.1.32/src/chiefofstaff/static/text.js +564 -0
  95. chiefofstaff-0.1.32/src/chiefofstaff/store.py +730 -0
  96. chiefofstaff-0.1.32/src/chiefofstaff/task_actions.py +3229 -0
  97. chiefofstaff-0.1.32/src/chiefofstaff/tasks.py +437 -0
  98. chiefofstaff-0.1.32/src/chiefofstaff/threads.py +203 -0
  99. chiefofstaff-0.1.32/src/chiefofstaff/tools.py +3795 -0
  100. chiefofstaff-0.1.32/src/chiefofstaff/watchdog.py +224 -0
  101. chiefofstaff-0.1.32/src/chiefofstaff/web.py +551 -0
  102. chiefofstaff-0.1.32/src/chiefofstaff/workers.py +1347 -0
  103. chiefofstaff-0.1.32/src/chiefofstaff/workspaces.py +1973 -0
  104. chiefofstaff-0.1.32/tests/conftest.py +456 -0
  105. chiefofstaff-0.1.32/tests/test_asks.py +545 -0
  106. chiefofstaff-0.1.32/tests/test_backend_contract.py +284 -0
  107. chiefofstaff-0.1.32/tests/test_connector.py +911 -0
  108. chiefofstaff-0.1.32/tests/test_decisions.py +233 -0
  109. chiefofstaff-0.1.32/tests/test_demo.py +92 -0
  110. chiefofstaff-0.1.32/tests/test_faults.py +429 -0
  111. chiefofstaff-0.1.32/tests/test_features.py +765 -0
  112. chiefofstaff-0.1.32/tests/test_github_source.py +966 -0
  113. chiefofstaff-0.1.32/tests/test_learning.py +161 -0
  114. chiefofstaff-0.1.32/tests/test_memory.py +541 -0
  115. chiefofstaff-0.1.32/tests/test_progress.py +3721 -0
  116. chiefofstaff-0.1.32/tests/test_receipts.py +651 -0
  117. chiefofstaff-0.1.32/tests/test_reliability.py +325 -0
  118. chiefofstaff-0.1.32/tests/test_repos.py +2048 -0
  119. chiefofstaff-0.1.32/tests/test_round5_drafts.py +265 -0
  120. chiefofstaff-0.1.32/tests/test_round5_results.py +401 -0
  121. chiefofstaff-0.1.32/tests/test_round5_router.py +241 -0
  122. chiefofstaff-0.1.32/tests/test_round5_settings.py +213 -0
  123. chiefofstaff-0.1.32/tests/test_round6.py +245 -0
  124. chiefofstaff-0.1.32/tests/test_round6_drafts.py +458 -0
  125. chiefofstaff-0.1.32/tests/test_round6_results.py +393 -0
  126. chiefofstaff-0.1.32/tests/test_round6_runtime.py +550 -0
  127. chiefofstaff-0.1.32/tests/test_round7.py +272 -0
  128. chiefofstaff-0.1.32/tests/test_round7_away.py +149 -0
  129. chiefofstaff-0.1.32/tests/test_round7_backend.py +314 -0
  130. chiefofstaff-0.1.32/tests/test_round7_split.py +233 -0
  131. chiefofstaff-0.1.32/tests/test_runtime.py +1910 -0
  132. chiefofstaff-0.1.32/tests/test_slack_source.py +475 -0
  133. chiefofstaff-0.1.32/tests/test_store.py +44 -0
  134. chiefofstaff-0.1.32/tests/test_tasks.py +642 -0
  135. chiefofstaff-0.1.32/tests/test_threads.py +551 -0
  136. chiefofstaff-0.1.32/tests/test_ui_text.py +962 -0
  137. chiefofstaff-0.1.32/tests/test_watchdog.py +56 -0
  138. chiefofstaff-0.1.32/tests/test_web.py +389 -0
  139. chiefofstaff-0.1.32/uv.lock +1301 -0
@@ -0,0 +1,2 @@
1
+ # Every change needs the maintainer's review before it is merged.
2
+ * @evanl666
@@ -0,0 +1,28 @@
1
+ name: Bug report
2
+ description: Something does not work as described.
3
+ labels: [bug]
4
+ body:
5
+ - type: textarea
6
+ id: what
7
+ attributes:
8
+ label: What happened, and what did you expect?
9
+ validations:
10
+ required: true
11
+ - type: textarea
12
+ id: steps
13
+ attributes:
14
+ label: How to reproduce
15
+ description: Ideally in demo mode (chiefofstaff --demo), so anyone can try it.
16
+ - type: input
17
+ id: versions
18
+ attributes:
19
+ label: Versions
20
+ description: "chiefofstaff --version, copilot --version, and your OS"
21
+ validations:
22
+ required: true
23
+ - type: textarea
24
+ id: details
25
+ attributes:
26
+ label: Logs or the session timeline
27
+ description: Remove anything private (tokens, Slack messages, company code) first.
28
+ render: text
@@ -0,0 +1,5 @@
1
+ blank_issues_enabled: false
2
+ contact_links:
3
+ - name: Security issue
4
+ url: https://github.com/evanl666/chiefofstaff/security/advisories/new
5
+ about: Report vulnerabilities privately, please.
@@ -0,0 +1,15 @@
1
+ name: Idea
2
+ description: Something Chief of Staff should do.
3
+ labels: [idea]
4
+ body:
5
+ - type: textarea
6
+ id: problem
7
+ attributes:
8
+ label: What gets in your way today?
9
+ description: The situation, not the solution. Who interrupts you, what you have to watch.
10
+ validations:
11
+ required: true
12
+ - type: textarea
13
+ id: idea
14
+ attributes:
15
+ label: What would help?
@@ -0,0 +1,18 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: github-actions
4
+ directory: /
5
+ schedule:
6
+ interval: weekly
7
+ groups:
8
+ actions:
9
+ patterns: ["*"]
10
+ - package-ecosystem: uv
11
+ directory: /
12
+ schedule:
13
+ interval: weekly
14
+ groups:
15
+ # Minor and patch updates together; a major update comes on its own, to review by itself.
16
+ python:
17
+ patterns: ["*"]
18
+ update-types: [minor, patch]
@@ -0,0 +1,12 @@
1
+ ## What changes for the owner
2
+
3
+ <!-- One or two sentences. Screenshots from the demo for UI changes. -->
4
+
5
+ ## How it was tested
6
+
7
+ - [ ] `uv run ruff check . && uv run ruff format --check . && uv run pyright`
8
+ - [ ] `uv run pytest -q` (a new or changed behavior has a test that fails without the change)
9
+ - [ ] `npx eslint@10 --max-warnings 0 src/chiefofstaff/static`, if the UI changed
10
+ - [ ] Demo or live test, if it changes behavior: <!-- which -->
11
+
12
+ CI must pass and the maintainer must approve before this can be merged.
@@ -0,0 +1,40 @@
1
+ name: Copilot integration
2
+ # The contract tests against the real GitHub Copilot CLI. They need a token with Copilot access
3
+ # (a fine-grained personal access token with the "Copilot Requests" permission) stored as the
4
+ # COPILOT_GITHUB_TOKEN secret; without it the job is skipped.
5
+ on:
6
+ schedule:
7
+ - cron: "17 6 * * *"
8
+ workflow_dispatch:
9
+ permissions:
10
+ contents: read
11
+ jobs:
12
+ contract:
13
+ runs-on: ubuntu-latest
14
+ timeout-minutes: 30
15
+ env:
16
+ GH_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
17
+ steps:
18
+ - name: Skip without a Copilot token
19
+ id: token
20
+ run: echo "present=${{ secrets.COPILOT_GITHUB_TOKEN != '' }}" >> "$GITHUB_OUTPUT"
21
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
22
+ if: steps.token.outputs.present == 'true'
23
+ with:
24
+ persist-credentials: false
25
+ - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
26
+ if: steps.token.outputs.present == 'true'
27
+ with:
28
+ node-version: "22"
29
+ - uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
30
+ if: steps.token.outputs.present == 'true'
31
+ with:
32
+ python-version: "3.13"
33
+ - if: steps.token.outputs.present == 'true'
34
+ run: npm install -g @github/copilot
35
+ - if: steps.token.outputs.present == 'true'
36
+ run: uv sync --locked --extra dev
37
+ - if: steps.token.outputs.present == 'true'
38
+ run: uv run --extra dev pytest -q -m copilot tests/test_backend_contract.py
39
+ env:
40
+ CHIEFOFSTAFF_TEST_COPILOT: "1"
@@ -0,0 +1,44 @@
1
+ name: Release
2
+ # Pushing a tag like v0.1.0 builds the package and publishes it to PyPI with trusted publishing
3
+ # (configure the "chiefofstaff" project on PyPI to trust this workflow first).
4
+ on:
5
+ push:
6
+ tags: ["v*"]
7
+ permissions:
8
+ contents: read
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+ timeout-minutes: 30
13
+ steps:
14
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
15
+ with:
16
+ persist-credentials: false
17
+ - uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
18
+ with:
19
+ python-version: "3.13"
20
+ - run: uv sync --locked --extra dev
21
+ - run: uv run --locked --extra dev pytest -q --timeout 120
22
+ - run: uv build
23
+ - run: uvx twine check --strict dist/*
24
+ - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
25
+ with:
26
+ name: dist
27
+ path: dist/
28
+ publish:
29
+ needs: build
30
+ runs-on: ubuntu-latest
31
+ environment: pypi
32
+ permissions:
33
+ id-token: write
34
+ contents: write
35
+ steps:
36
+ - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
37
+ with:
38
+ name: dist
39
+ path: dist/
40
+ - uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # release/v1
41
+ - uses: softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 # v2
42
+ with:
43
+ files: dist/*
44
+ generate_release_notes: true
@@ -0,0 +1,160 @@
1
+ name: Test
2
+ # Every pull request must pass all of these before it can be merged (see the "CI passed" job,
3
+ # the one required check). Actions are pinned to commits; Dependabot proposes updates.
4
+ on:
5
+ push:
6
+ branches: [main]
7
+ tags: ["v*"]
8
+ pull_request:
9
+ merge_group:
10
+ workflow_dispatch:
11
+ permissions:
12
+ contents: read
13
+ concurrency:
14
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
15
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
16
+
17
+ jobs:
18
+ lint:
19
+ name: Lint and types
20
+ runs-on: ubuntu-latest
21
+ timeout-minutes: 15
22
+ steps:
23
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
24
+ with:
25
+ persist-credentials: false
26
+ - uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
27
+ with:
28
+ python-version: "3.13"
29
+ - name: Lockfile matches pyproject.toml
30
+ run: uv lock --check
31
+ - run: uv sync --locked --extra dev
32
+ - name: Ruff
33
+ run: uv run --locked --extra dev ruff check --output-format=github .
34
+ - name: Formatting
35
+ run: uv run --locked --extra dev ruff format --check --diff .
36
+ - name: Pyright
37
+ run: uv run --locked --extra dev pyright
38
+ - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
39
+ with:
40
+ node-version: "22"
41
+ - name: ESLint (web UI)
42
+ run: npx --yes eslint@10.14.0 --max-warnings 0 src/chiefofstaff/static
43
+ - name: Workflow files
44
+ run: docker run --rm -v "$PWD:/repo" -w /repo rhysd/actionlint:1.7.12 -color
45
+
46
+ test:
47
+ name: Tests (Python ${{ matrix.python-version }}, ${{ matrix.os }})
48
+ runs-on: ${{ matrix.os }}
49
+ timeout-minutes: 30
50
+ strategy:
51
+ fail-fast: false
52
+ matrix:
53
+ os: [ubuntu-latest, macos-latest]
54
+ python-version: ["3.11", "3.12", "3.13"]
55
+ steps:
56
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
57
+ with:
58
+ persist-credentials: false
59
+ - uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
60
+ with:
61
+ python-version: ${{ matrix.python-version }}
62
+ - run: uv sync --locked --extra dev
63
+ - name: Tests
64
+ if: ${{ !(matrix.os == 'ubuntu-latest' && matrix.python-version == '3.13') }}
65
+ run: uv run --locked --extra dev pytest -q --timeout 120
66
+ - name: Tests with coverage (at least 88% of lines and branches)
67
+ if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.13' }}
68
+ run: >-
69
+ uv run --locked --extra dev pytest -q --timeout 120
70
+ --cov=chiefofstaff --cov-branch --cov-report=term-missing:skip-covered
71
+ --cov-fail-under=88
72
+
73
+ package:
74
+ name: Package
75
+ runs-on: ubuntu-latest
76
+ timeout-minutes: 15
77
+ steps:
78
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
79
+ with:
80
+ persist-credentials: false
81
+ - uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
82
+ with:
83
+ python-version: "3.13"
84
+ - run: uv build
85
+ - name: Metadata renders on PyPI
86
+ run: uvx twine check --strict dist/*
87
+ - name: The wheel installs and starts, with its web UI
88
+ run: |
89
+ uv venv /tmp/installed
90
+ uv pip install --python /tmp/installed dist/*.whl
91
+ /tmp/installed/bin/chiefofstaff --help
92
+ /tmp/installed/bin/python - <<'PY'
93
+ from importlib.resources import files
94
+ static = files("chiefofstaff") / "static"
95
+ for name in ("index.html", "app.js", "style.css"):
96
+ assert (static / name).is_file(), name
97
+ PY
98
+
99
+ demo-ui:
100
+ # The whole product in a browser, with scripted sessions: no Copilot or Slack account.
101
+ name: Demo in a browser
102
+ runs-on: ubuntu-latest
103
+ timeout-minutes: 20
104
+ steps:
105
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
106
+ with:
107
+ persist-credentials: false
108
+ - uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
109
+ with:
110
+ python-version: "3.13"
111
+ - run: uv sync --locked --extra dev
112
+ - run: uv run --with playwright python -m playwright install --with-deps chromium
113
+ - run: uv run --with playwright python scripts/demo_smoke.py
114
+ - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
115
+ if: always()
116
+ with:
117
+ name: demo-screenshots
118
+ path: browser-shots/
119
+
120
+ secrets:
121
+ name: Secret scan
122
+ runs-on: ubuntu-latest
123
+ timeout-minutes: 10
124
+ steps:
125
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
126
+ with:
127
+ fetch-depth: 0
128
+ persist-credentials: false
129
+ - uses: gitleaks/gitleaks-action@ff98106e4c7b2bc287b24eaf42907196329070c7 # v2
130
+ env:
131
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
132
+
133
+ dependencies:
134
+ name: Dependency review
135
+ if: github.event_name == 'pull_request'
136
+ runs-on: ubuntu-latest
137
+ timeout-minutes: 10
138
+ steps:
139
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
140
+ with:
141
+ persist-credentials: false
142
+ - uses: actions/dependency-review-action@2031cfc080254a8a887f58cffee85186f0e49e48 # v4
143
+ with:
144
+ fail-on-severity: moderate
145
+
146
+ passed:
147
+ # The one check branch protection requires: it fails unless every job above passed (or,
148
+ # for dependency review, did not apply).
149
+ name: CI passed
150
+ if: always()
151
+ needs: [lint, test, package, demo-ui, secrets, dependencies]
152
+ runs-on: ubuntu-latest
153
+ timeout-minutes: 5
154
+ steps:
155
+ - name: Every job passed
156
+ env:
157
+ RESULTS: ${{ toJSON(needs.*.result) }}
158
+ run: |
159
+ echo "$RESULTS"
160
+ echo "$RESULTS" | grep -Eq '"(failure|cancelled)"' && exit 1 || exit 0
@@ -0,0 +1,17 @@
1
+ .venv/
2
+ __pycache__/
3
+ *.py[cod]
4
+ .pytest_cache/
5
+ .ruff_cache/
6
+ dist/
7
+ *.egg-info/
8
+ .env
9
+ .env.*
10
+ *.db
11
+ *.db-*
12
+ .DS_Store
13
+ browser-shots/
14
+ .coverage
15
+ .coverage.*
16
+ htmlcov/
17
+ coverage.xml