MESSY-synth 0.0.1__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 (44) hide show
  1. messy_synth-0.0.1/.github/actions/setup/action.yaml +30 -0
  2. messy_synth-0.0.1/.github/dependabot.yml +47 -0
  3. messy_synth-0.0.1/.github/workflows/code-quality-main.yaml +28 -0
  4. messy_synth-0.0.1/.github/workflows/code-quality-pr.yaml +46 -0
  5. messy_synth-0.0.1/.github/workflows/python-build.yaml +112 -0
  6. messy_synth-0.0.1/.github/workflows/tests.yaml +60 -0
  7. messy_synth-0.0.1/.github/zizmor.yml +29 -0
  8. messy_synth-0.0.1/.gitignore +216 -0
  9. messy_synth-0.0.1/.pre-commit-config.yaml +155 -0
  10. messy_synth-0.0.1/.python-version +1 -0
  11. messy_synth-0.0.1/AGENTS.md +43 -0
  12. messy_synth-0.0.1/CLAUDE.md +43 -0
  13. messy_synth-0.0.1/CONTRIBUTORS.md +286 -0
  14. messy_synth-0.0.1/LICENSE +21 -0
  15. messy_synth-0.0.1/PKG-INFO +250 -0
  16. messy_synth-0.0.1/README.md +232 -0
  17. messy_synth-0.0.1/conftest.py +33 -0
  18. messy_synth-0.0.1/demo/README.md +108 -0
  19. messy_synth-0.0.1/demo/smoke_matrix.py +79 -0
  20. messy_synth-0.0.1/pyproject.toml +107 -0
  21. messy_synth-0.0.1/setup.cfg +4 -0
  22. messy_synth-0.0.1/src/MESSY_synth/__init__.py +58 -0
  23. messy_synth-0.0.1/src/MESSY_synth/__main__.py +204 -0
  24. messy_synth-0.0.1/src/MESSY_synth/constraints.py +351 -0
  25. messy_synth-0.0.1/src/MESSY_synth/generate.py +585 -0
  26. messy_synth-0.0.1/src/MESSY_synth/inference.py +925 -0
  27. messy_synth-0.0.1/src/MESSY_synth/plan.py +774 -0
  28. messy_synth-0.0.1/src/MESSY_synth/regexgen.py +400 -0
  29. messy_synth-0.0.1/src/MESSY_synth/smoke.py +342 -0
  30. messy_synth-0.0.1/src/MESSY_synth/synth.py +178 -0
  31. messy_synth-0.0.1/src/MESSY_synth/validate.py +429 -0
  32. messy_synth-0.0.1/src/MESSY_synth/values.py +421 -0
  33. messy_synth-0.0.1/src/MESSY_synth/writer.py +280 -0
  34. messy_synth-0.0.1/src/MESSY_synth.egg-info/PKG-INFO +250 -0
  35. messy_synth-0.0.1/src/MESSY_synth.egg-info/SOURCES.txt +42 -0
  36. messy_synth-0.0.1/src/MESSY_synth.egg-info/dependency_links.txt +1 -0
  37. messy_synth-0.0.1/src/MESSY_synth.egg-info/entry_points.txt +2 -0
  38. messy_synth-0.0.1/src/MESSY_synth.egg-info/requires.txt +3 -0
  39. messy_synth-0.0.1/src/MESSY_synth.egg-info/scm_file_list.json +38 -0
  40. messy_synth-0.0.1/src/MESSY_synth.egg-info/scm_version.json +8 -0
  41. messy_synth-0.0.1/src/MESSY_synth.egg-info/top_level.txt +1 -0
  42. messy_synth-0.0.1/tests/test_end_to_end.py +134 -0
  43. messy_synth-0.0.1/tests/test_referential_integrity.py +321 -0
  44. messy_synth-0.0.1/uv.lock +920 -0
@@ -0,0 +1,30 @@
1
+ name: Setup Package
2
+ description: This workflow sets up the package for other workflows.
3
+ inputs:
4
+ python-version:
5
+ description: The Python version to use for the setup.
6
+ required: true
7
+ default: "3.11"
8
+ group:
9
+ description: The dependency group to install (benchmarks, dev, docs)
10
+ required: false
11
+ default: "dev"
12
+ runs:
13
+ using: "composite"
14
+ steps:
15
+ - uses: actions/setup-python@v7.0.0
16
+ with:
17
+ python-version: "${{ inputs.python-version }}"
18
+
19
+ - name: Install uv
20
+ uses: astral-sh/setup-uv@v10.0.1
21
+ with:
22
+ enable-cache: true
23
+ cache-suffix: "py${{ inputs.python-version }}"
24
+
25
+ - name: Install packages
26
+ shell: bash
27
+ env:
28
+ UV_GROUP: ${{ inputs.group }}
29
+ run: |
30
+ uv sync --locked --group "$UV_GROUP"
@@ -0,0 +1,47 @@
1
+ version: 2
2
+ updates:
3
+ # GitHub Actions: track action versions across workflows. "/" only covers
4
+ # .github/workflows/, so the local composite actions are listed explicitly.
5
+ - package-ecosystem: "github-actions"
6
+ directories:
7
+ - "/"
8
+ - "/.github/actions/*"
9
+ schedule:
10
+ interval: "monthly"
11
+ # Wait 7 days after a release before opening an update PR. Mitigates
12
+ # supply-chain risk by giving time for malicious releases to be flagged
13
+ # and yanked before they propagate here.
14
+ cooldown:
15
+ default-days: 7
16
+ # Skip patch-level Action updates — they're almost always non-functional
17
+ # changes to the action's own README or CI. Security advisories fire on
18
+ # a separate channel regardless of this filter.
19
+ ignore:
20
+ - dependency-name: "*"
21
+ update-types: ["version-update:semver-patch"]
22
+ groups:
23
+ actions:
24
+ patterns: ["*"]
25
+ commit-message:
26
+ prefix: "ci"
27
+ labels:
28
+ - "dependencies"
29
+ - "github-actions"
30
+ open-pull-requests-limit: 5
31
+
32
+ # Python dependencies via uv (pyproject.toml + uv.lock).
33
+ - package-ecosystem: "uv"
34
+ directory: "/"
35
+ schedule:
36
+ interval: "monthly"
37
+ cooldown:
38
+ default-days: 7
39
+ groups:
40
+ python:
41
+ patterns: ["*"]
42
+ commit-message:
43
+ prefix: "deps"
44
+ labels:
45
+ - "dependencies"
46
+ - "python"
47
+ open-pull-requests-limit: 5
@@ -0,0 +1,28 @@
1
+ # Same as `code-quality-pr.yaml` but triggered on commit to main branch
2
+ # and runs on all files (instead of only the changed ones)
3
+
4
+ name: Code Quality Main
5
+
6
+ on:
7
+ push:
8
+ branches: [main]
9
+
10
+ permissions:
11
+ contents: read
12
+
13
+ jobs:
14
+ code-quality:
15
+ runs-on: ubuntu-latest
16
+
17
+ steps:
18
+ - uses: actions/checkout@v7.0.1
19
+ with:
20
+ persist-credentials: false
21
+
22
+ - name: Setup package
23
+ uses: ./.github/actions/setup
24
+ with:
25
+ python-version: "3.12"
26
+
27
+ - name: Run pre-commits
28
+ run: uv run pre-commit run --all-files --show-diff-on-failure
@@ -0,0 +1,46 @@
1
+ # This workflow finds which files were changed, prints them,
2
+ # and runs `pre-commit` on those files.
3
+
4
+ # Inspired by the sktime library:
5
+ # https://github.com/alan-turing-institute/sktime/blob/main/.github/workflows/test.yml
6
+
7
+ name: Code Quality PR
8
+
9
+ on:
10
+ pull_request:
11
+
12
+ permissions:
13
+ contents: read
14
+ pull-requests: read
15
+
16
+ jobs:
17
+ code-quality:
18
+ runs-on: ubuntu-latest
19
+
20
+ steps:
21
+ - uses: actions/checkout@v7.0.1
22
+ with:
23
+ persist-credentials: false
24
+
25
+ - name: Setup package
26
+ uses: ./.github/actions/setup
27
+ with:
28
+ python-version: "3.12"
29
+
30
+ - name: Find modified files
31
+ id: file_changes
32
+ uses: tj-actions/changed-files@v47.0.6
33
+
34
+ - name: List all changed files
35
+ env:
36
+ ALL_CHANGED_FILES: ${{ steps.file_changes.outputs.all_changed_files }}
37
+ run: echo "$ALL_CHANGED_FILES"
38
+
39
+ - name: Run pre-commits
40
+ env:
41
+ ALL_CHANGED_FILES: ${{ steps.file_changes.outputs.all_changed_files }}
42
+ run: |
43
+ # Intentional word splitting: the action output is a space-separated
44
+ # list of file paths.
45
+ # shellcheck disable=SC2086
46
+ uv run pre-commit run --show-diff-on-failure --files $ALL_CHANGED_FILES
@@ -0,0 +1,112 @@
1
+ name: Publish Python 🐍 distribution 📦 to PyPI
2
+
3
+ on: push
4
+
5
+ permissions:
6
+ contents: read
7
+
8
+ jobs:
9
+ build:
10
+ name: Build distribution 📦
11
+ runs-on: ubuntu-latest
12
+
13
+ permissions:
14
+ contents: read
15
+
16
+ strategy:
17
+ matrix:
18
+ python-version: ["3.12"]
19
+
20
+ steps:
21
+ - uses: actions/checkout@v7.0.1
22
+ with:
23
+ persist-credentials: false
24
+
25
+ - name: Set up Python ${{ matrix.python-version }}
26
+ uses: actions/setup-python@v7.0.0
27
+ with:
28
+ python-version: ${{ matrix.python-version }}
29
+
30
+ - name: Install uv
31
+ uses: astral-sh/setup-uv@v10.0.1
32
+ with:
33
+ enable-cache: true
34
+
35
+ - name: Build
36
+ run: uv build
37
+
38
+ - name: Store the distribution packages
39
+ uses: actions/upload-artifact@v7.0.1
40
+ with:
41
+ name: python-package-distributions
42
+ path: dist/
43
+
44
+ publish-to-pypi:
45
+ name: Publish Python 🐍 distribution 📦 to PyPI
46
+ if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
47
+ needs:
48
+ - build
49
+ runs-on: ubuntu-latest
50
+ environment:
51
+ name: pypi
52
+ url: https://pypi.org/p/MESSY_synth
53
+ permissions:
54
+ id-token: write # IMPORTANT: mandatory for trusted publishing
55
+
56
+ steps:
57
+ - name: Download all the dists
58
+ uses: actions/download-artifact@v8.0.1
59
+ with:
60
+ name: python-package-distributions
61
+ path: dist/
62
+
63
+ - name: Publish distribution 📦 to PyPI
64
+ uses: pypa/gh-action-pypi-publish@v1.14.0
65
+
66
+ github-release:
67
+ name: >-
68
+ Sign the Python 🐍 distribution 📦 with Sigstore
69
+ and upload them to GitHub Release
70
+ needs:
71
+ - publish-to-pypi
72
+ runs-on: ubuntu-latest
73
+
74
+ permissions:
75
+ contents: write # IMPORTANT: mandatory for making GitHub Releases
76
+ id-token: write # IMPORTANT: mandatory for sigstore
77
+
78
+ steps:
79
+ - name: Download all the dists
80
+ uses: actions/download-artifact@v8.0.1
81
+ with:
82
+ name: python-package-distributions
83
+ path: dist/
84
+
85
+ - name: Sign the dists with Sigstore
86
+ uses: sigstore/gh-action-sigstore-python@v3.5.0
87
+ with:
88
+ inputs: >-
89
+ ./dist/*.tar.gz
90
+ ./dist/*.whl
91
+ - name: Create GitHub Release
92
+ env:
93
+ GITHUB_TOKEN: ${{ github.token }}
94
+ REF_NAME: ${{ github.ref_name }}
95
+ REPOSITORY: ${{ github.repository }}
96
+ run: >-
97
+ gh release create
98
+ "$REF_NAME"
99
+ --repo "$REPOSITORY"
100
+ --generate-notes
101
+ - name: Upload artifact signatures to GitHub Release
102
+ env:
103
+ GITHUB_TOKEN: ${{ github.token }}
104
+ REF_NAME: ${{ github.ref_name }}
105
+ REPOSITORY: ${{ github.repository }}
106
+ # Upload to GitHub Release using the `gh` CLI.
107
+ # `dist/` contains the built packages, and the
108
+ # sigstore-produced signatures and certificates.
109
+ run: >-
110
+ gh release upload
111
+ "$REF_NAME" dist/**
112
+ --repo "$REPOSITORY"
@@ -0,0 +1,60 @@
1
+ name: Tests
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ run_tests_ubuntu:
13
+ runs-on: ubuntu-latest
14
+
15
+ strategy:
16
+ fail-fast: false
17
+
18
+ timeout-minutes: 30
19
+
20
+ steps:
21
+ - uses: actions/checkout@v7.0.1
22
+ with:
23
+ persist-credentials: false
24
+
25
+ - name: Setup package
26
+ uses: ./.github/actions/setup
27
+ with:
28
+ python-version: "3.12"
29
+
30
+ - name: Run tests
31
+ run: >
32
+ uv run pytest -v
33
+ --ignore=docs
34
+ --cov=src
35
+ --cov-report=xml:coverage.xml
36
+ --cov-report=term
37
+ --junitxml=junit.xml
38
+
39
+ # Skip Codecov on Dependabot PRs: workflow runs from Dependabot do not
40
+ # have access to repository secrets (a deliberate GitHub security
41
+ # policy), so CODECOV_TOKEN is empty and the upload fails. Coverage on
42
+ # dependency bumps is not meaningful anyway.
43
+ - name: Upload coverage to Codecov
44
+ if: github.actor != 'dependabot[bot]'
45
+ uses: codecov/codecov-action@v7.0.0
46
+ with:
47
+ token: ${{ secrets.CODECOV_TOKEN }}
48
+ files: coverage.xml
49
+ # Non-fatal until a CODECOV_TOKEN secret is configured for this repository. With no
50
+ # token the upload fails, and a coverage-reporting outage should not gate merges.
51
+ # Flip back to true once the secret exists.
52
+ fail_ci_if_error: false
53
+ verbose: true
54
+
55
+ - name: Upload test results to Codecov
56
+ if: ${{ !cancelled() && github.actor != 'dependabot[bot]' }}
57
+ uses: codecov/test-results-action@v1.2.1
58
+ with:
59
+ token: ${{ secrets.CODECOV_TOKEN }}
60
+ files: junit.xml
@@ -0,0 +1,29 @@
1
+ # zizmor configuration. See https://docs.zizmor.sh/configuration/
2
+ #
3
+ # `unpinned-uses`: zizmor's default policy requires every action reference to be
4
+ # a 40-char commit SHA. That is the strictest stance but high friction even with
5
+ # Dependabot. We relax it to allow tag-pinning (`ref-pin`) for publishers we
6
+ # explicitly trust, and require commit-hash-pinning (`hash-pin`) for everything
7
+ # else. Dependabot (.github/dependabot.yml) keeps the tag pins current.
8
+ rules:
9
+ unpinned-uses:
10
+ config:
11
+ policies:
12
+ # First-party GitHub-owned actions.
13
+ actions/*: ref-pin
14
+ github/*: ref-pin
15
+ # Astral (uv, ruff, ty).
16
+ astral-sh/*: ref-pin
17
+ # Codecov (coverage + test results upload).
18
+ codecov/*: ref-pin
19
+ # PyPA (Python Packaging Authority).
20
+ pypa/*: ref-pin
21
+ # Sigstore (Linux Foundation).
22
+ sigstore/*: ref-pin
23
+ # Pre-commit hook authors used in this repo's workflows.
24
+ rhysd/*: ref-pin
25
+ # tj-actions/changed-files (had a March-2025 supply-chain compromise;
26
+ # consider tightening to hash-pin if you want stricter security).
27
+ tj-actions/*: ref-pin
28
+ # Default for everything else: require commit-hash pinning.
29
+ "*": hash-pin
@@ -0,0 +1,216 @@
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
+ # SageMath parsed files
135
+ *.sage.py
136
+
137
+ # Environments
138
+ .env
139
+ .envrc
140
+ .venv
141
+ env/
142
+ venv/
143
+ ENV/
144
+ env.bak/
145
+ venv.bak/
146
+
147
+ # Spyder project settings
148
+ .spyderproject
149
+ .spyproject
150
+
151
+ # Rope project settings
152
+ .ropeproject
153
+
154
+ # mkdocs documentation
155
+ /site
156
+
157
+ # mypy
158
+ .mypy_cache/
159
+ .dmypy.json
160
+ dmypy.json
161
+
162
+ # Pyre type checker
163
+ .pyre/
164
+
165
+ # pytype static type analyzer
166
+ .pytype/
167
+
168
+ # Cython debug symbols
169
+ cython_debug/
170
+
171
+ # PyCharm
172
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
173
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
174
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
175
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
176
+ #.idea/
177
+
178
+ # Abstra
179
+ # Abstra is an AI-powered process automation framework.
180
+ # Ignore directories containing user credentials, local state, and settings.
181
+ # Learn more at https://abstra.io/docs
182
+ .abstra/
183
+
184
+ # Visual Studio Code
185
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
186
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
187
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
188
+ # you could uncomment the following to ignore the entire vscode folder
189
+ # .vscode/
190
+
191
+ # Ruff stuff:
192
+ .ruff_cache/
193
+
194
+ # PyPI configuration file
195
+ .pypirc
196
+
197
+ # Cursor
198
+ # Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
199
+ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
200
+ # refer to https://docs.cursor.com/context/ignore-files
201
+ .cursorignore
202
+ .cursorindexingignore
203
+
204
+ # Marimo
205
+ marimo/_static/
206
+ marimo/_lsp/
207
+ __marimo__/
208
+
209
+ # Warp
210
+ WARP.md
211
+
212
+ # Claude Code local/ephemeral files
213
+ .claude/settings.local.json
214
+ .claude/memory/
215
+ .claude/*.lock
216
+ .claude/scheduled_tasks/