toktrail 0.1.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 (131) hide show
  1. toktrail-0.1.0/.codecrate.toml +14 -0
  2. toktrail-0.1.0/.github/workflows/codecov.yml +20 -0
  3. toktrail-0.1.0/.github/workflows/pre-commit.yml +31 -0
  4. toktrail-0.1.0/.github/workflows/python-publish.yml +39 -0
  5. toktrail-0.1.0/.github/workflows/tests.yml +20 -0
  6. toktrail-0.1.0/.gitignore +226 -0
  7. toktrail-0.1.0/.pre-commit-config.yaml +69 -0
  8. toktrail-0.1.0/.readthedocs.yaml +23 -0
  9. toktrail-0.1.0/.ruff.toml +26 -0
  10. toktrail-0.1.0/.taskledger.toml +29 -0
  11. toktrail-0.1.0/AGENTS.md +586 -0
  12. toktrail-0.1.0/API.md +379 -0
  13. toktrail-0.1.0/LICENSE +21 -0
  14. toktrail-0.1.0/PKG-INFO +563 -0
  15. toktrail-0.1.0/README.md +518 -0
  16. toktrail-0.1.0/docs/Makefile +33 -0
  17. toktrail-0.1.0/docs/api.rst +68 -0
  18. toktrail-0.1.0/docs/api_usage.rst +214 -0
  19. toktrail-0.1.0/docs/build.sh +57 -0
  20. toktrail-0.1.0/docs/conf.py +60 -0
  21. toktrail-0.1.0/docs/config.rst +135 -0
  22. toktrail-0.1.0/docs/harnesses.rst +177 -0
  23. toktrail-0.1.0/docs/index.rst +14 -0
  24. toktrail-0.1.0/docs/requirements.txt +3 -0
  25. toktrail-0.1.0/docs/stable_api_examples.md +180 -0
  26. toktrail-0.1.0/docs/usage.rst +150 -0
  27. toktrail-0.1.0/examples/_manual_run_common.py +224 -0
  28. toktrail-0.1.0/examples/manual_run_amp.py +22 -0
  29. toktrail-0.1.0/examples/manual_run_claude.py +22 -0
  30. toktrail-0.1.0/examples/manual_run_codex.py +25 -0
  31. toktrail-0.1.0/examples/manual_run_copilot.py +25 -0
  32. toktrail-0.1.0/examples/manual_run_droid.py +22 -0
  33. toktrail-0.1.0/examples/manual_run_goose.py +22 -0
  34. toktrail-0.1.0/examples/manual_run_opencode.py +28 -0
  35. toktrail-0.1.0/examples/manual_run_pi.py +25 -0
  36. toktrail-0.1.0/examples/manual_run_vibe.py +22 -0
  37. toktrail-0.1.0/pyproject.toml +105 -0
  38. toktrail-0.1.0/setup.cfg +4 -0
  39. toktrail-0.1.0/setup.py +3 -0
  40. toktrail-0.1.0/tests/__init__.py +0 -0
  41. toktrail-0.1.0/tests/fixtures/opencode.db +0 -0
  42. toktrail-0.1.0/tests/helpers.py +153 -0
  43. toktrail-0.1.0/tests/perf/bench_reports.py +151 -0
  44. toktrail-0.1.0/tests/test_adapter_summary.py +177 -0
  45. toktrail-0.1.0/tests/test_amp_parser.py +382 -0
  46. toktrail-0.1.0/tests/test_analysis.py +331 -0
  47. toktrail-0.1.0/tests/test_api_config.py +57 -0
  48. toktrail-0.1.0/tests/test_api_contract.py +272 -0
  49. toktrail-0.1.0/tests/test_api_environment.py +60 -0
  50. toktrail-0.1.0/tests/test_api_events.py +257 -0
  51. toktrail-0.1.0/tests/test_api_imports.py +522 -0
  52. toktrail-0.1.0/tests/test_api_reports.py +543 -0
  53. toktrail-0.1.0/tests/test_api_sessions.py +147 -0
  54. toktrail-0.1.0/tests/test_api_sources.py +313 -0
  55. toktrail-0.1.0/tests/test_api_workflow.py +243 -0
  56. toktrail-0.1.0/tests/test_cache.py +157 -0
  57. toktrail-0.1.0/tests/test_claude_parser.py +518 -0
  58. toktrail-0.1.0/tests/test_cli.py +5456 -0
  59. toktrail-0.1.0/tests/test_codex_parser.py +442 -0
  60. toktrail-0.1.0/tests/test_config.py +1108 -0
  61. toktrail-0.1.0/tests/test_copilot_parser.py +230 -0
  62. toktrail-0.1.0/tests/test_costing.py +515 -0
  63. toktrail-0.1.0/tests/test_db.py +2434 -0
  64. toktrail-0.1.0/tests/test_docs_commands.py +156 -0
  65. toktrail-0.1.0/tests/test_droid_parser.py +228 -0
  66. toktrail-0.1.0/tests/test_goose_parser.py +208 -0
  67. toktrail-0.1.0/tests/test_opencode_parser.py +312 -0
  68. toktrail-0.1.0/tests/test_paths.py +285 -0
  69. toktrail-0.1.0/tests/test_periods.py +277 -0
  70. toktrail-0.1.0/tests/test_pi_parser.py +199 -0
  71. toktrail-0.1.0/tests/test_price_parser.py +287 -0
  72. toktrail-0.1.0/tests/test_provider_identity.py +18 -0
  73. toktrail-0.1.0/tests/test_scanner.py +194 -0
  74. toktrail-0.1.0/tests/test_stable_api_examples.py +317 -0
  75. toktrail-0.1.0/tests/test_sync.py +334 -0
  76. toktrail-0.1.0/tests/test_vibe_parser.py +391 -0
  77. toktrail-0.1.0/toktrail/__init__.py +5 -0
  78. toktrail-0.1.0/toktrail/_version.py +24 -0
  79. toktrail-0.1.0/toktrail/adapters/__init__.py +5 -0
  80. toktrail-0.1.0/toktrail/adapters/amp.py +580 -0
  81. toktrail-0.1.0/toktrail/adapters/base.py +93 -0
  82. toktrail-0.1.0/toktrail/adapters/claude.py +1050 -0
  83. toktrail-0.1.0/toktrail/adapters/codex.py +746 -0
  84. toktrail-0.1.0/toktrail/adapters/copilot.py +378 -0
  85. toktrail-0.1.0/toktrail/adapters/droid.py +389 -0
  86. toktrail-0.1.0/toktrail/adapters/goose.py +308 -0
  87. toktrail-0.1.0/toktrail/adapters/opencode.py +366 -0
  88. toktrail-0.1.0/toktrail/adapters/pi.py +373 -0
  89. toktrail-0.1.0/toktrail/adapters/registry.py +208 -0
  90. toktrail-0.1.0/toktrail/adapters/summary.py +317 -0
  91. toktrail-0.1.0/toktrail/adapters/vibe.py +387 -0
  92. toktrail-0.1.0/toktrail/analysis.py +473 -0
  93. toktrail-0.1.0/toktrail/api/__init__.py +198 -0
  94. toktrail-0.1.0/toktrail/api/_common.py +126 -0
  95. toktrail-0.1.0/toktrail/api/_conversions.py +508 -0
  96. toktrail-0.1.0/toktrail/api/analysis.py +334 -0
  97. toktrail-0.1.0/toktrail/api/config.py +134 -0
  98. toktrail-0.1.0/toktrail/api/environment.py +79 -0
  99. toktrail-0.1.0/toktrail/api/events.py +361 -0
  100. toktrail-0.1.0/toktrail/api/harnesses.py +146 -0
  101. toktrail-0.1.0/toktrail/api/imports.py +355 -0
  102. toktrail-0.1.0/toktrail/api/models.py +1189 -0
  103. toktrail-0.1.0/toktrail/api/paths.py +216 -0
  104. toktrail-0.1.0/toktrail/api/reports.py +364 -0
  105. toktrail-0.1.0/toktrail/api/sessions.py +289 -0
  106. toktrail-0.1.0/toktrail/api/sources.py +279 -0
  107. toktrail-0.1.0/toktrail/api/sync.py +108 -0
  108. toktrail-0.1.0/toktrail/api/workflow.py +150 -0
  109. toktrail-0.1.0/toktrail/cache.py +70 -0
  110. toktrail-0.1.0/toktrail/cli.py +5525 -0
  111. toktrail-0.1.0/toktrail/cli_sync.py +185 -0
  112. toktrail-0.1.0/toktrail/config.py +2335 -0
  113. toktrail-0.1.0/toktrail/costing.py +760 -0
  114. toktrail-0.1.0/toktrail/db.py +3535 -0
  115. toktrail-0.1.0/toktrail/errors.py +65 -0
  116. toktrail-0.1.0/toktrail/formatting.py +21 -0
  117. toktrail-0.1.0/toktrail/models.py +208 -0
  118. toktrail-0.1.0/toktrail/paths.py +317 -0
  119. toktrail-0.1.0/toktrail/periods.py +534 -0
  120. toktrail-0.1.0/toktrail/price_parser.py +1126 -0
  121. toktrail-0.1.0/toktrail/provider_identity.py +43 -0
  122. toktrail-0.1.0/toktrail/py.typed +0 -0
  123. toktrail-0.1.0/toktrail/reporting.py +769 -0
  124. toktrail-0.1.0/toktrail/scanner.py +235 -0
  125. toktrail-0.1.0/toktrail/sync.py +987 -0
  126. toktrail-0.1.0/toktrail.egg-info/PKG-INFO +563 -0
  127. toktrail-0.1.0/toktrail.egg-info/SOURCES.txt +129 -0
  128. toktrail-0.1.0/toktrail.egg-info/dependency_links.txt +1 -0
  129. toktrail-0.1.0/toktrail.egg-info/entry_points.txt +2 -0
  130. toktrail-0.1.0/toktrail.egg-info/requires.txt +21 -0
  131. toktrail-0.1.0/toktrail.egg-info/top_level.txt +1 -0
@@ -0,0 +1,14 @@
1
+ [codecrate]
2
+ output = "context_toktrail.md"
3
+ keep_docstrings = true
4
+ dedupe = true
5
+ respect_gitignore = true
6
+ # exclude = ["*/.venv/*", "integration_tests", "examples", "docs"]
7
+ gitignore_allow = ["toktrail/_version.py"]
8
+ exclude = ["*/.venv/*", "integration_tests", "todo.md"]
9
+ include = ["**/*.py", "**/*.toml", "**/*.rst", "**/*.md", "**/*.typed", "LICENSE"]
10
+ split_max_chars = 0
11
+ manifest = false
12
+ layout = "full"
13
+ profile = "portable-agent"
14
+ emit_standalone_unpacker = true
@@ -0,0 +1,20 @@
1
+ name: CodeCov
2
+ on: push
3
+ jobs:
4
+ run:
5
+ runs-on: ubuntu-latest
6
+ env:
7
+ OS: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@master
10
+ - name: Setup Python
11
+ uses: actions/setup-python@master
12
+ - name: 'generate report'
13
+ run: |
14
+ pip install coverage click pytest pytest-cov
15
+ pip install -e .
16
+ pytest --cov --cov-branch --cov-report=xml
17
+ - name: Upload coverage to Codecov
18
+ uses: codecov/codecov-action@v5
19
+ with:
20
+ token: ${{ secrets.CODECOV_TOKEN }} # required
@@ -0,0 +1,31 @@
1
+ name: pre-commit
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+
7
+ jobs:
8
+ pre-commit:
9
+ runs-on: ubuntu-latest
10
+
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+
14
+ - uses: actions/setup-python@v5
15
+ with:
16
+ python-version: "3.13"
17
+
18
+ - uses: actions/setup-node@v4
19
+ with:
20
+ node-version: "20"
21
+
22
+ - name: Install Python tools
23
+ run: |
24
+ python -m pip install --upgrade pip
25
+ python -m pip install "ruff==0.15.12"
26
+
27
+ - name: Install Node tools
28
+ run: |
29
+ npm install -g prettier@2.7.1 @prettier/plugin-xml@2.2.0 eslint
30
+
31
+ - uses: pre-commit/action@v3.0.1
@@ -0,0 +1,39 @@
1
+ # This workflow will upload a Python Package using Twine when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3
+
4
+ # This workflow uses actions that are not certified by GitHub.
5
+ # They are provided by a third-party and are governed by
6
+ # separate terms of service, privacy policy, and support
7
+ # documentation.
8
+
9
+ name: Upload Python Package
10
+
11
+ on:
12
+ release:
13
+ types: [published]
14
+
15
+ permissions:
16
+ contents: read
17
+
18
+ jobs:
19
+ deploy:
20
+
21
+ runs-on: ubuntu-latest
22
+
23
+ steps:
24
+ - uses: actions/checkout@v3
25
+ - name: Set up Python
26
+ uses: actions/setup-python@v3
27
+ with:
28
+ python-version: '3.x'
29
+ - name: Install dependencies
30
+ run: |
31
+ python -m pip install --upgrade pip
32
+ pip install build
33
+ - name: Build package
34
+ run: python -m build
35
+ - name: Publish package
36
+ uses: pypa/gh-action-pypi-publish@v1.13.0
37
+ with:
38
+ user: __token__
39
+ password: ${{ secrets.PYPI_API_TOKEN }}
@@ -0,0 +1,20 @@
1
+ name: Run tests
2
+ on: [push]
3
+ jobs:
4
+ run:
5
+ runs-on: ${{ matrix.os }}
6
+ strategy:
7
+ matrix:
8
+ os: [ubuntu-latest, windows-latest, macos-latest]
9
+ python-version: ["3.10", "3.11", "3.12", "3.13"]
10
+ steps:
11
+ - uses: actions/checkout@master
12
+ - name: Setup Python
13
+ uses: actions/setup-python@master
14
+ with:
15
+ python-version: ${{ matrix.python-version }}
16
+ - name: Install packages
17
+ run: |
18
+ pip install pytest
19
+ pip install -e .
20
+ pytest
@@ -0,0 +1,226 @@
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
+ *.cover
49
+ *.py.cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ # Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ # poetry.lock
109
+ # poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ # pdm.lock
116
+ # pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ # pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # Redis
135
+ *.rdb
136
+ *.aof
137
+ *.pid
138
+
139
+ # RabbitMQ
140
+ mnesia/
141
+ rabbitmq/
142
+ rabbitmq-data/
143
+
144
+ # ActiveMQ
145
+ activemq-data/
146
+
147
+ # SageMath parsed files
148
+ *.sage.py
149
+
150
+ # Environments
151
+ .env
152
+ .envrc
153
+ .venv
154
+ env/
155
+ venv/
156
+ ENV/
157
+ env.bak/
158
+ venv.bak/
159
+
160
+ # Spyder project settings
161
+ .spyderproject
162
+ .spyproject
163
+
164
+ # Rope project settings
165
+ .ropeproject
166
+
167
+ # mkdocs documentation
168
+ /site
169
+
170
+ # mypy
171
+ .mypy_cache/
172
+ .dmypy.json
173
+ dmypy.json
174
+
175
+ # Pyre type checker
176
+ .pyre/
177
+
178
+ # pytype static type analyzer
179
+ .pytype/
180
+
181
+ # Cython debug symbols
182
+ cython_debug/
183
+
184
+ # PyCharm
185
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
186
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
187
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
188
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
189
+ # .idea/
190
+
191
+ # Abstra
192
+ # Abstra is an AI-powered process automation framework.
193
+ # Ignore directories containing user credentials, local state, and settings.
194
+ # Learn more at https://abstra.io/docs
195
+ .abstra/
196
+
197
+ # Visual Studio Code
198
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
199
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
200
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
201
+ # you could uncomment the following to ignore the entire vscode folder
202
+ # .vscode/
203
+ # Temporary file for partial code execution
204
+ tempCodeRunnerFile.py
205
+
206
+ # Ruff stuff:
207
+ .ruff_cache/
208
+
209
+ # PyPI configuration file
210
+ .pypirc
211
+
212
+ # Marimo
213
+ marimo/_static/
214
+ marimo/_lsp/
215
+ __marimo__/
216
+
217
+ .codex
218
+ .pi-lens/
219
+ .commandcode/
220
+
221
+ # Streamlit
222
+ .streamlit/secrets.toml
223
+ .taskledger/
224
+ context_toktrail*
225
+ todo.md
226
+ toktrail/_version.py
@@ -0,0 +1,69 @@
1
+ exclude: |
2
+ # NOT INSTALLABLE ADDONS
3
+ # END NOT INSTALLABLE ADDONS
4
+ # Files and folders generated by bots, to avoid loops
5
+ ^setup/|/static/description/index\.html$|
6
+ # We don't want to mess with tool-generated files
7
+ .svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|
8
+ # Maybe reactivate this when all README files include prettier ignore tags?
9
+ ^README\.md$|
10
+ # Repos using Sphinx to generate docs don't need prettying
11
+ ^docs/_templates/.*\.html$|
12
+ # Don't bother non-technical authors with formatting issues in docs
13
+ readme/.*\.(rst|md)$|
14
+ # Ignore build and dist directories in addons
15
+ /build/|/dist/|/dev/|/notnebooks/
16
+ # You don't usually want a bot to modify your legal texts
17
+ (LICENSE.*|COPYING.*)|
18
+ default_language_version:
19
+ python: python3
20
+ node: "16.17.0"
21
+ repos:
22
+ - repo: https://github.com/astral-sh/ruff-pre-commit
23
+ rev: v0.15.12
24
+ hooks:
25
+ - id: ruff
26
+ args: [--fix, --exit-non-zero-on-fix, --config=.ruff.toml]
27
+ - id: ruff-format
28
+ - repo: https://github.com/asottile/pyupgrade
29
+ rev: v3.21.2
30
+ hooks:
31
+ - id: pyupgrade
32
+ args: [--py310-plus]
33
+ - repo: https://github.com/pre-commit/pre-commit-hooks
34
+ rev: v6.0.0
35
+ hooks:
36
+ - id: check-toml
37
+ - id: check-yaml
38
+ - id: end-of-file-fixer
39
+ - id: trailing-whitespace
40
+ - id: check-symlinks
41
+ - id: check-xml
42
+ - id: mixed-line-ending
43
+ args: ["--fix=lf"]
44
+ - id: debug-statements
45
+ - id: check-case-conflict
46
+ - id: check-docstring-first
47
+ - id: check-executables-have-shebangs
48
+ - id: check-merge-conflict
49
+ # exclude files where underlines are not distinguishable from merge conflicts
50
+ exclude: /README\.rst$|^docs/.*\.rst$
51
+ - repo: https://github.com/pre-commit/mirrors-prettier
52
+ rev: v4.0.0-alpha.8
53
+ hooks:
54
+ - id: prettier
55
+ name: prettier (with plugin-xml)
56
+ additional_dependencies:
57
+ - "prettier@2.7.1"
58
+ - "@prettier/plugin-xml@2.2.0"
59
+ args:
60
+ - --plugin=@prettier/plugin-xml
61
+ files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
62
+ - repo: https://github.com/pre-commit/mirrors-eslint
63
+ rev: v10.2.1
64
+ hooks:
65
+ - id: eslint
66
+ verbose: true
67
+ args:
68
+ - --color
69
+ - --fix
@@ -0,0 +1,23 @@
1
+ # Read the Docs configuration file
2
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3
+
4
+ # Required
5
+ version: 2
6
+
7
+ # Set the OS, Python version, and other tools you might need
8
+ build:
9
+ os: ubuntu-24.04
10
+ tools:
11
+ python: "3.13"
12
+
13
+ # Build documentation in the "docs/" directory with Sphinx
14
+ sphinx:
15
+ configuration: docs/conf.py
16
+ # Optionally, but recommended,
17
+ # declare the Python requirements required to build your documentation
18
+ # See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
19
+ python:
20
+ install:
21
+ - requirements: docs/requirements.txt
22
+ - method: pip
23
+ path: .
@@ -0,0 +1,26 @@
1
+
2
+ target-version = "py310"
3
+ fix = true
4
+
5
+ [lint]
6
+ extend-select = [
7
+ "B",
8
+ "C90",
9
+ "E501", # line too long (default 88)
10
+ "I", # isort
11
+ "UP", # pyupgrade
12
+ ]
13
+ exclude = ["setup/*", "notebooks/*"]
14
+
15
+ [format]
16
+ exclude = ["setup/*", "notebooks/*"]
17
+
18
+ [lint.per-file-ignores]
19
+ "__init__.py" = ["F401", "I001"] # ignore unused and unsorted imports in __init__.py
20
+ "__manifest__.py" = ["B018"] # useless expression
21
+
22
+ [lint.isort]
23
+ section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
24
+
25
+ [lint.mccabe]
26
+ max-complexity = 20
@@ -0,0 +1,29 @@
1
+ # Project-local taskledger configuration.
2
+ # This file lives in the source project root.
3
+ config_version = 1
4
+ taskledger_dir = '.taskledger'
5
+
6
+ # Stable project identity. Commit this with your source tree.
7
+ project_uuid = "8fda718e-f14a-46ec-8adf-39fd1cef8e41"
8
+
9
+ # Project-local taskledger overrides.
10
+ # The source-budget settings below are the active composition defaults.
11
+ # Lower them for stricter prompts, or raise them when a run needs more context.
12
+ # Supported keys:
13
+ # default_memory_update_mode = "replace"
14
+ # default_file_render_mode = "content"
15
+ # default_save_run_reports = true
16
+ # default_source_max_chars = 12000
17
+ # default_total_source_max_chars = 48000
18
+ # default_source_head_lines = 200
19
+ # default_source_tail_lines = 50
20
+ # default_context_order = ["memory", "file", "item", "inline", "loop_artifact"]
21
+ # workflow_schema = "opsx-lite"
22
+ # project_context = "Project-specific workflow guidance."
23
+ # default_artifact_order = ["analysis", "plan", "implementation", "validation"]
24
+
25
+ # Taskledger branch-scoped state. This block is intentionally safe to commit.
26
+ ledger_ref = "main"
27
+ ledger_parent_ref = ""
28
+ ledger_next_task_number = 57
29
+ ledger_branch_guard = "off"