mimosynth 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 (78) hide show
  1. mimosynth-0.1.0/.codecrate.toml +25 -0
  2. mimosynth-0.1.0/.github/workflows/codecov.yml +27 -0
  3. mimosynth-0.1.0/.github/workflows/pre-commit.yml +31 -0
  4. mimosynth-0.1.0/.github/workflows/python-publish.yml +42 -0
  5. mimosynth-0.1.0/.github/workflows/tests.yml +51 -0
  6. mimosynth-0.1.0/.gitignore +225 -0
  7. mimosynth-0.1.0/.ledger/ledger.toml +24 -0
  8. mimosynth-0.1.0/.ledger/releaseledger/.ledger-project.toml +6 -0
  9. mimosynth-0.1.0/.ledger/releaseledger/config.toml +57 -0
  10. mimosynth-0.1.0/.ledger/releaseledger/data/.ledger-project.toml +6 -0
  11. mimosynth-0.1.0/.ledger/releaseledger/data/ledgers/main/events/events.jsonl +1 -0
  12. mimosynth-0.1.0/.ledger/releaseledger/data/ledgers/main/releases/v0.1.0/release.md +27 -0
  13. mimosynth-0.1.0/.ledger/taskledger/.ledger-project.toml +6 -0
  14. mimosynth-0.1.0/.ledger/taskledger/config.toml +7 -0
  15. mimosynth-0.1.0/.pre-commit-config.yaml +64 -0
  16. mimosynth-0.1.0/LICENSE +201 -0
  17. mimosynth-0.1.0/PKG-INFO +333 -0
  18. mimosynth-0.1.0/README.md +93 -0
  19. mimosynth-0.1.0/RELEASE_CHECKLIST.md +8 -0
  20. mimosynth-0.1.0/docs/Makefile +32 -0
  21. mimosynth-0.1.0/docs/api.md +75 -0
  22. mimosynth-0.1.0/docs/changelog.md +3 -0
  23. mimosynth-0.1.0/docs/conf.py +102 -0
  24. mimosynth-0.1.0/docs/configuration.md +86 -0
  25. mimosynth-0.1.0/docs/index.md +35 -0
  26. mimosynth-0.1.0/docs/make.bat +113 -0
  27. mimosynth-0.1.0/docs/make.py +60 -0
  28. mimosynth-0.1.0/docs/quickstart.md +50 -0
  29. mimosynth-0.1.0/docs/requirements.txt +4 -0
  30. mimosynth-0.1.0/docs/synthesis.md +63 -0
  31. mimosynth-0.1.0/docs/troubleshooting.md +17 -0
  32. mimosynth-0.1.0/docs/voice-cloning.md +40 -0
  33. mimosynth-0.1.0/docs/voice-design.md +22 -0
  34. mimosynth-0.1.0/docs/voicerender.md +51 -0
  35. mimosynth-0.1.0/examples/simple_synthesis.py +7 -0
  36. mimosynth-0.1.0/examples/token_plan_voice_clone.py +19 -0
  37. mimosynth-0.1.0/examples/voice_clone.py +15 -0
  38. mimosynth-0.1.0/examples/voice_design.py +12 -0
  39. mimosynth-0.1.0/mimosynth/__init__.py +103 -0
  40. mimosynth-0.1.0/mimosynth/_version.py +24 -0
  41. mimosynth-0.1.0/mimosynth/api_contract.py +42 -0
  42. mimosynth-0.1.0/mimosynth/client.py +257 -0
  43. mimosynth-0.1.0/mimosynth/connection_config.py +157 -0
  44. mimosynth-0.1.0/mimosynth/constants.py +30 -0
  45. mimosynth-0.1.0/mimosynth/discovery.py +96 -0
  46. mimosynth-0.1.0/mimosynth/exceptions.py +72 -0
  47. mimosynth-0.1.0/mimosynth/py.typed +0 -0
  48. mimosynth-0.1.0/mimosynth/reference_audio.py +90 -0
  49. mimosynth-0.1.0/mimosynth/synthesis_config.py +71 -0
  50. mimosynth-0.1.0/mimosynth/synthesis_identity.py +69 -0
  51. mimosynth-0.1.0/mimosynth/synthesis_types.py +66 -0
  52. mimosynth-0.1.0/mimosynth/synthesizer.py +240 -0
  53. mimosynth-0.1.0/mimosynth.egg-info/PKG-INFO +333 -0
  54. mimosynth-0.1.0/mimosynth.egg-info/SOURCES.txt +76 -0
  55. mimosynth-0.1.0/mimosynth.egg-info/dependency_links.txt +1 -0
  56. mimosynth-0.1.0/mimosynth.egg-info/requires.txt +13 -0
  57. mimosynth-0.1.0/mimosynth.egg-info/scm_file_list.json +72 -0
  58. mimosynth-0.1.0/mimosynth.egg-info/scm_version.json +8 -0
  59. mimosynth-0.1.0/mimosynth.egg-info/top_level.txt +1 -0
  60. mimosynth-0.1.0/pyproject.toml +93 -0
  61. mimosynth-0.1.0/setup.cfg +4 -0
  62. mimosynth-0.1.0/setup.py +3 -0
  63. mimosynth-0.1.0/tests/conftest.py +76 -0
  64. mimosynth-0.1.0/tests/test_api_contract.py +16 -0
  65. mimosynth-0.1.0/tests/test_client.py +133 -0
  66. mimosynth-0.1.0/tests/test_config_and_requests.py +74 -0
  67. mimosynth-0.1.0/tests/test_connection_config.py +91 -0
  68. mimosynth-0.1.0/tests/test_connection_security.py +49 -0
  69. mimosynth-0.1.0/tests/test_discovery.py +37 -0
  70. mimosynth-0.1.0/tests/test_identity.py +26 -0
  71. mimosynth-0.1.0/tests/test_live_smoke.py +26 -0
  72. mimosynth-0.1.0/tests/test_packaging.py +23 -0
  73. mimosynth-0.1.0/tests/test_reference_audio.py +47 -0
  74. mimosynth-0.1.0/tests/test_release_artifacts.py +57 -0
  75. mimosynth-0.1.0/tests/test_response_validation.py +43 -0
  76. mimosynth-0.1.0/tests/test_synthesizer.py +125 -0
  77. mimosynth-0.1.0/tests/test_token_plan.py +104 -0
  78. mimosynth-0.1.0/tools/check_release_artifacts.py +75 -0
@@ -0,0 +1,25 @@
1
+ [codecrate]
2
+ output = "context_mimosynth.md"
3
+ keep_docstrings = true
4
+ dedupe = true
5
+ metadata = false
6
+ respect_gitignore = true
7
+ exclude = ["*/.venv/*", "context_mimosynth.*"]
8
+ gitignore_allow = ["mimosynth/_version.py"]
9
+ include = [
10
+ "**/*.py",
11
+ "**/*.toml",
12
+ "**/*.md",
13
+ "**/*.json",
14
+ "**/*.txt",
15
+ "**/*.csv",
16
+ "**/*.tsv",
17
+ "**/*.yaml",
18
+ "**/*.yml",
19
+ "**/*.ssmd",
20
+ "LICENSE",
21
+ ]
22
+ split_max_chars = 0
23
+ layout = "full"
24
+ profile = "portable-agent"
25
+ emit_standalone_unpacker = true
@@ -0,0 +1,27 @@
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@v7
10
+ - name: Setup Python
11
+ uses: actions/setup-python@v5
12
+ with:
13
+ python-version: "3.13"
14
+ - name: 'generate report'
15
+ run: |
16
+ pip install coverage pytest pytest-cov
17
+ pip install -e ".[dev]"
18
+ pytest --cov --junitxml=junit.xml
19
+ - name: Upload coverage to Codecov
20
+ uses: codecov/codecov-action@v5
21
+ with:
22
+ token: ${{ secrets.CODECOV_TOKEN }} # required
23
+ - name: Upload test results to Codecov
24
+ if: ${{ !cancelled() }}
25
+ uses: codecov/test-results-action@v1
26
+ with:
27
+ token: ${{ secrets.CODECOV_TOKEN }}
@@ -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@v7
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.16.0"
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,42 @@
1
+ # Build and publish a Python package when a GitHub Release is published.
2
+
3
+ name: Upload Python Package
4
+
5
+ on:
6
+ release:
7
+ types: [published]
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ jobs:
13
+ deploy:
14
+ runs-on: ubuntu-latest
15
+
16
+ steps:
17
+ - name: Check out release
18
+ uses: actions/checkout@v7
19
+
20
+ - name: Set up Python
21
+ uses: actions/setup-python@v7
22
+ with:
23
+ python-version: "3.13"
24
+
25
+ - name: Install build tooling
26
+ run: python -m pip install --upgrade pip build twine
27
+ - name: Build package
28
+ run: |
29
+ rm -rf dist
30
+ python -m build
31
+ - name: Check built distributions
32
+ run: python -m twine check dist/*
33
+ - name: Validate release artifacts
34
+ env:
35
+ RELEASE_TAG: ${{ github.event.release.tag_name }}
36
+ run: python tools/check_release_artifacts.py
37
+
38
+ - name: Publish package to PyPI
39
+ uses: pypa/gh-action-pypi-publish@v1.14.1
40
+ with:
41
+ password: ${{ secrets.PYPI_API_TOKEN }}
42
+ attestations: false
@@ -0,0 +1,51 @@
1
+ name: Run tests
2
+ on:
3
+ push:
4
+ pull_request:
5
+ workflow_call:
6
+ jobs:
7
+ run:
8
+ runs-on: ${{ matrix.os }}
9
+ strategy:
10
+ matrix:
11
+ os: [ubuntu-latest, windows-latest, macos-latest]
12
+ python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
13
+ steps:
14
+ - uses: actions/checkout@v7
15
+ - name: Setup Python
16
+ uses: actions/setup-python@v5
17
+ with:
18
+ python-version: ${{ matrix.python-version }}
19
+ - name: Install packages
20
+ run: |
21
+ pip install -e ".[dev]"
22
+ python -m compileall -q mimosynth tests
23
+ - name: Quality checks
24
+ run: |
25
+ ruff check mimosynth tests
26
+ ruff format --check mimosynth tests
27
+ mypy mimosynth
28
+ - name: Tests
29
+ run: pytest -m "not slow"
30
+ - name: Install documentation dependencies
31
+ if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.14'
32
+ run: python -m pip install -r docs/requirements.txt
33
+ - name: Build documentation
34
+ if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.14'
35
+ run: python docs/make.py html
36
+ - name: Check documentation links
37
+ if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.14'
38
+ run: python docs/make.py linkcheck
39
+ - name: Build wheel for isolated API smoke test
40
+ if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.14'
41
+ run: python -m build --wheel --outdir "${{ runner.temp }}/mimosynth-wheel"
42
+ - name: Check typed marker is packaged in wheel
43
+ if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.14'
44
+ run: python -c "from pathlib import Path; from zipfile import ZipFile; wheel = next(Path('${{ runner.temp }}/mimosynth-wheel').glob('*.whl')); assert 'mimosynth/py.typed' in ZipFile(wheel).namelist()"
45
+ - name: Smoke test installed wheel outside checkout
46
+ if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.14'
47
+ working-directory: ${{ runner.temp }}
48
+ run: |
49
+ python -m venv wheel-env
50
+ wheel-env/bin/python -m pip install mimosynth-wheel/*.whl
51
+ wheel-env/bin/python -I -c 'import mimosynth; assert mimosynth.REQUEST_API_VERSION == 1; assert mimosynth.request_api_contract().caller_owns_text_boundaries'
@@ -0,0 +1,225 @@
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
+ *.lcov
51
+ .hypothesis/
52
+ .pytest_cache/
53
+ cover/
54
+
55
+ # Translations
56
+ *.mo
57
+ *.pot
58
+
59
+ # Django stuff:
60
+ *.log
61
+ local_settings.py
62
+ db.sqlite3
63
+ db.sqlite3-journal
64
+
65
+ # Flask stuff:
66
+ instance/
67
+ .webassets-cache
68
+
69
+ # Scrapy stuff:
70
+ .scrapy
71
+
72
+ # Sphinx documentation
73
+ docs/_build/
74
+
75
+ # PyBuilder
76
+ .pybuilder/
77
+ target/
78
+
79
+ # Jupyter Notebook
80
+ .ipynb_checkpoints
81
+
82
+ # IPython
83
+ profile_default/
84
+ ipython_config.py
85
+
86
+ # pyenv
87
+ # For a library or package, you might want to ignore these files since the code is
88
+ # intended to run in multiple environments; otherwise, check them in:
89
+ # .python-version
90
+
91
+ # pipenv
92
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
94
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
95
+ # install all needed dependencies.
96
+ # Pipfile.lock
97
+
98
+ # uv
99
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
100
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
101
+ # commonly ignored for libraries.
102
+ # uv.lock
103
+
104
+ # poetry
105
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
106
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
107
+ # commonly ignored for libraries.
108
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
109
+ # poetry.lock
110
+ # poetry.toml
111
+
112
+ # pdm
113
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
114
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
115
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
116
+ # pdm.lock
117
+ # pdm.toml
118
+ .pdm-python
119
+ .pdm-build/
120
+
121
+ # pixi
122
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
123
+ # pixi.lock
124
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
125
+ # in the .venv directory. It is recommended not to include this directory in version control.
126
+ .pixi/*
127
+ !.pixi/config.toml
128
+
129
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
130
+ __pypackages__/
131
+
132
+ # Celery stuff
133
+ celerybeat-schedule*
134
+ celerybeat.pid
135
+
136
+ # Redis
137
+ *.rdb
138
+ *.aof
139
+ *.pid
140
+
141
+ # RabbitMQ
142
+ mnesia/
143
+ rabbitmq/
144
+ rabbitmq-data/
145
+
146
+ # ActiveMQ
147
+ activemq-data/
148
+
149
+ # SageMath parsed files
150
+ *.sage.py
151
+
152
+ # Environments
153
+ .env
154
+ .envrc
155
+ .venv
156
+ env/
157
+ venv/
158
+ ENV/
159
+ env.bak/
160
+ venv.bak/
161
+
162
+ # Conda environments
163
+ conda-meta/
164
+
165
+ # Spyder project settings
166
+ .spyderproject
167
+ .spyproject
168
+
169
+ # Rope project settings
170
+ .ropeproject
171
+
172
+ # mkdocs/Zensical documentation
173
+ /site
174
+
175
+ # mypy
176
+ .mypy_cache/
177
+ .dmypy.json
178
+ dmypy.json
179
+
180
+ # Pyre type checker
181
+ .pyre/
182
+
183
+ # pytype static type analyzer
184
+ .pytype/
185
+
186
+ # Cython debug symbols
187
+ cython_debug/
188
+
189
+ # PyCharm
190
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
191
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
192
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
193
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
194
+ # .idea/
195
+
196
+ # Abstra
197
+ # Abstra is an AI-powered process automation framework.
198
+ # Ignore directories containing user credentials, local state, and settings.
199
+ # Learn more at https://abstra.io/docs
200
+ .abstra/
201
+
202
+ # Visual Studio Code
203
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore that
204
+ # can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
205
+ # and can be added to the global gitignore or merged into this file. However, if you prefer, you
206
+ # could uncomment the following to ignore the entire vscode folder
207
+ # .vscode/
208
+ # Temporary file for partial code execution
209
+ tempCodeRunnerFile.py
210
+
211
+ # Ruff stuff:
212
+ .ruff_cache/
213
+
214
+ # PyPI configuration file
215
+ .pypirc
216
+
217
+ # Marimo
218
+ marimo/_static/
219
+ marimo/_lsp/
220
+ __marimo__/
221
+
222
+ # Streamlit
223
+ .streamlit/secrets.toml
224
+ context_mimosynth*.*
225
+ mimosynth/_version.py
@@ -0,0 +1,24 @@
1
+ schema_version = 3
2
+
3
+ [project]
4
+ uuid = "562f708d-7dd4-456a-a150-07e1be88d35b"
5
+ name = "mimosynth"
6
+
7
+ [ledgers.taskledger.mounts.data]
8
+ storage = "external"
9
+ root = "../ledger"
10
+
11
+ [ledgers.taskledger.mounts.runtime]
12
+ storage = "user-data"
13
+
14
+ [ledgers.taskledger.mounts.logs]
15
+ storage = "user-data"
16
+
17
+ [ledgers.taskledger.mounts.indexes]
18
+ storage = "cache"
19
+
20
+ [ledgers.releaseledger.mounts.data]
21
+ storage = "project"
22
+
23
+ [ledgers.releaseledger.mounts.indexes]
24
+ storage = "cache"
@@ -0,0 +1,6 @@
1
+ schema_version = 1
2
+ layout_version = 3
3
+ project_uuid = "562f708d-7dd4-456a-a150-07e1be88d35b"
4
+ tool = "releaseledger"
5
+ mount = "config"
6
+ storage = "project"
@@ -0,0 +1,57 @@
1
+ config_version = 2
2
+ # Branch-scoped release state. This block is safe to commit.
3
+ ledger_ref = "main"
4
+ ledger_parent_ref = ""
5
+ ledger_branch_guard = "off"
6
+ # Cross-ledger identity. Local record IDs stay unchanged.
7
+
8
+ [ledger]
9
+ code = "rl"
10
+ # Release defaults.
11
+
12
+ [release]
13
+ default_changelog = "CHANGELOG.md"
14
+ default_status = "planned"
15
+ allow_dirty_worktree = true
16
+ # Changelog build defaults.
17
+
18
+ [changelog]
19
+ output = "docs/changelog.md"
20
+ header = ""
21
+ body = """## {% if release.date %}[{{ release.version }}] - {{ release.date }}{% else %}[{{ release.version }}] - Unreleased{% endif %}
22
+
23
+ {% for group in groups %}
24
+ ### {{ group.title }}
25
+ {% for entry in group.entries %}
26
+ - {% if entry.breaking %}**BREAKING:** {% endif %}{{ entry.summary }}
27
+ {% endfor %}
28
+
29
+ {% endfor %}
30
+ """
31
+ footer = "<!-- generated by releaseledger -->"
32
+ trim = true
33
+ render_always = false
34
+ postprocessors = []
35
+ standard = ""
36
+ group_mode = "extended"
37
+ link_references = false
38
+ repository_url = ""
39
+ tag_prefix = "v"
40
+ compare_url_template = ""
41
+ release_url_template = ""
42
+ preamble = ""
43
+ semver = false
44
+ unreleased = true
45
+ # Git-first release evidence.
46
+
47
+ [git]
48
+ enabled = true
49
+ tag_creation = "local"
50
+ default_base = "previous_release_tag"
51
+ default_head = "HEAD"
52
+ previous_tag_patterns = ["v{version}", "{version}"]
53
+ include_merges = "nontrivial"
54
+ require_clean_worktree = false
55
+ max_commits = 500
56
+ max_diff_chars_per_commit = 12000
57
+ candidate_status = "draft"
@@ -0,0 +1,6 @@
1
+ schema_version = 1
2
+ layout_version = 3
3
+ project_uuid = "562f708d-7dd4-456a-a150-07e1be88d35b"
4
+ tool = "releaseledger"
5
+ mount = "data"
6
+ storage = "project"
@@ -0,0 +1 @@
1
+ {"data":{"status":"planned"},"event":"release.created","event_id":"event-0001","record_revisions":{"release:v0.1.0":1},"release_version":"v0.1.0","schema_version":2}
@@ -0,0 +1,27 @@
1
+ ---
2
+ schema_version: 2
3
+ object_type: release
4
+ versioning:
5
+ schema_version: 1
6
+ revision: 1
7
+ version: v0.1.0
8
+ status: planned
9
+ history_state: curated
10
+ title: null
11
+ released_at: null
12
+ previous_version: null
13
+ cancel_reason: null
14
+ superseded_by: null
15
+ changelog_file: null
16
+ boundary_ref: null
17
+ source_refs: []
18
+ source_count: null
19
+ entry_count: 0
20
+ artifact_count: 0
21
+ git_base_ref: null
22
+ git_base_sha: null
23
+ git_head_ref: null
24
+ git_head_sha: null
25
+ git_range: null
26
+ git_commit_count: null
27
+ ---
@@ -0,0 +1,6 @@
1
+ schema_version = 1
2
+ layout_version = 3
3
+ project_uuid = "562f708d-7dd4-456a-a150-07e1be88d35b"
4
+ tool = "taskledger"
5
+ mount = "config"
6
+ storage = "project"
@@ -0,0 +1,7 @@
1
+ # Project-local Taskledger configuration.
2
+ # Storage topology belongs to Ledgercore; branch state belongs to data/state.toml.
3
+ config_version = 3
4
+
5
+ [ledger]
6
+ code = 'tl'
7
+ name = 'taskledger'
@@ -0,0 +1,64 @@
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
+ repos:
21
+ - repo: local
22
+ hooks:
23
+ - id: ruff-check
24
+ name: ruff check
25
+ entry: ruff check --exit-non-zero-on-fix --force-exclude
26
+ language: system
27
+ types_or: [python, pyi]
28
+ - id: ruff-format
29
+ name: ruff format
30
+ entry: ruff format --force-exclude
31
+ language: system
32
+ types_or: [python, pyi]
33
+ - repo: https://github.com/asottile/pyupgrade
34
+ rev: v3.21.2
35
+ hooks:
36
+ - id: pyupgrade
37
+ args: [--py310-plus]
38
+ - repo: https://github.com/pre-commit/pre-commit-hooks
39
+ rev: v6.0.0
40
+ hooks:
41
+ - id: check-toml
42
+ - id: check-yaml
43
+ - id: end-of-file-fixer
44
+ - id: trailing-whitespace
45
+ - id: check-symlinks
46
+ - id: check-xml
47
+ - id: mixed-line-ending
48
+ args: ["--fix=lf"]
49
+ - id: debug-statements
50
+ - id: check-case-conflict
51
+ - id: check-docstring-first
52
+ - id: check-executables-have-shebangs
53
+ - id: check-merge-conflict
54
+ - repo: https://github.com/pre-commit/mirrors-prettier
55
+ rev: v4.0.0-alpha.8
56
+ hooks:
57
+ - id: prettier
58
+ name: prettier (with plugin-xml)
59
+ additional_dependencies:
60
+ - "prettier@2.7.1"
61
+ - "@prettier/plugin-xml@2.2.0"
62
+ args:
63
+ - --plugin=@prettier/plugin-xml
64
+ files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$