humancompiler-scheduler 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 (63) hide show
  1. humancompiler_scheduler-0.1.0/.github/ISSUE_TEMPLATE/bug_report.md +25 -0
  2. humancompiler_scheduler-0.1.0/.github/ISSUE_TEMPLATE/feature_request.md +16 -0
  3. humancompiler_scheduler-0.1.0/.github/dependabot.yml +11 -0
  4. humancompiler_scheduler-0.1.0/.github/pull_request_template.md +16 -0
  5. humancompiler_scheduler-0.1.0/.github/workflows/coverage.yml +31 -0
  6. humancompiler_scheduler-0.1.0/.github/workflows/doc.yml +53 -0
  7. humancompiler_scheduler-0.1.0/.github/workflows/pytest.yml +54 -0
  8. humancompiler_scheduler-0.1.0/.github/workflows/release.yml +110 -0
  9. humancompiler_scheduler-0.1.0/.github/workflows/ruff.yml +30 -0
  10. humancompiler_scheduler-0.1.0/.github/workflows/typecheck.yml +35 -0
  11. humancompiler_scheduler-0.1.0/.gitignore +207 -0
  12. humancompiler_scheduler-0.1.0/.pre-commit-config.yaml +41 -0
  13. humancompiler_scheduler-0.1.0/CHANGELOG.md +54 -0
  14. humancompiler_scheduler-0.1.0/LICENSE +21 -0
  15. humancompiler_scheduler-0.1.0/PKG-INFO +147 -0
  16. humancompiler_scheduler-0.1.0/README.md +116 -0
  17. humancompiler_scheduler-0.1.0/docs/Makefile +17 -0
  18. humancompiler_scheduler-0.1.0/docs/_static/.gitkeep +0 -0
  19. humancompiler_scheduler-0.1.0/docs/_templates/.gitkeep +0 -0
  20. humancompiler_scheduler-0.1.0/docs/api/human-flexible-time.rst +147 -0
  21. humancompiler_scheduler-0.1.0/docs/api/human-solver-parameters.rst +188 -0
  22. humancompiler_scheduler-0.1.0/docs/api/human.rst +50 -0
  23. humancompiler_scheduler-0.1.0/docs/api/index.rst +10 -0
  24. humancompiler_scheduler-0.1.0/docs/api/scheduler.rst +37 -0
  25. humancompiler_scheduler-0.1.0/docs/conf.py +29 -0
  26. humancompiler_scheduler-0.1.0/docs/human-flexible-review.rst +58 -0
  27. humancompiler_scheduler-0.1.0/docs/index.rst +22 -0
  28. humancompiler_scheduler-0.1.0/docs/quickstart.rst +87 -0
  29. humancompiler_scheduler-0.1.0/examples/__init__.py +1 -0
  30. humancompiler_scheduler-0.1.0/examples/demo.py +64 -0
  31. humancompiler_scheduler-0.1.0/examples/human_daily_demo.py +34 -0
  32. humancompiler_scheduler-0.1.0/examples/human_daily_review.py +64 -0
  33. humancompiler_scheduler-0.1.0/examples/human_tuning_webui.py +1104 -0
  34. humancompiler_scheduler-0.1.0/humancompiler_scheduler/__init__.py +42 -0
  35. humancompiler_scheduler-0.1.0/humancompiler_scheduler/constraints.py +217 -0
  36. humancompiler_scheduler-0.1.0/humancompiler_scheduler/human/__init__.py +86 -0
  37. humancompiler_scheduler-0.1.0/humancompiler_scheduler/human/api.py +58 -0
  38. humancompiler_scheduler-0.1.0/humancompiler_scheduler/human/io.py +443 -0
  39. humancompiler_scheduler-0.1.0/humancompiler_scheduler/human/model.py +302 -0
  40. humancompiler_scheduler-0.1.0/humancompiler_scheduler/human/report.py +198 -0
  41. humancompiler_scheduler-0.1.0/humancompiler_scheduler/human/review.py +108 -0
  42. humancompiler_scheduler-0.1.0/humancompiler_scheduler/human/solver.py +637 -0
  43. humancompiler_scheduler-0.1.0/humancompiler_scheduler/io.py +117 -0
  44. humancompiler_scheduler-0.1.0/humancompiler_scheduler/model.py +87 -0
  45. humancompiler_scheduler-0.1.0/humancompiler_scheduler/py.typed +1 -0
  46. humancompiler_scheduler-0.1.0/humancompiler_scheduler/solvers.py +419 -0
  47. humancompiler_scheduler-0.1.0/pyproject.toml +219 -0
  48. humancompiler_scheduler-0.1.0/samples/human/daily_basic.yaml +43 -0
  49. humancompiler_scheduler-0.1.0/samples/human/daily_deadline_pressure.yaml +20 -0
  50. humancompiler_scheduler-0.1.0/samples/human/daily_dependencies.yaml +27 -0
  51. humancompiler_scheduler-0.1.0/samples/human/daily_flexible_fixed_events.yaml +18 -0
  52. humancompiler_scheduler-0.1.0/samples/human/daily_flexible_normal.yaml +37 -0
  53. humancompiler_scheduler-0.1.0/samples/human/daily_flexible_rolling.yaml +19 -0
  54. humancompiler_scheduler-0.1.0/samples/human/daily_flexible_split_policy.yaml +36 -0
  55. humancompiler_scheduler-0.1.0/samples/human/daily_mixed_energy.yaml +28 -0
  56. humancompiler_scheduler-0.1.0/samples/human/data/humancompiler_common_database.yaml +176 -0
  57. humancompiler_scheduler-0.1.0/samples/sample.yaml +49 -0
  58. humancompiler_scheduler-0.1.0/tests/__init__.py +1 -0
  59. humancompiler_scheduler-0.1.0/tests/test_human_daily_phase1.py +1097 -0
  60. humancompiler_scheduler-0.1.0/tests/test_human_models.py +108 -0
  61. humancompiler_scheduler-0.1.0/tests/test_human_tuning_webui.py +162 -0
  62. humancompiler_scheduler-0.1.0/tests/test_solvers.py +22 -0
  63. humancompiler_scheduler-0.1.0/uv.lock +1617 -0
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: Bug report
3
+ about: Report a bug
4
+ title: "[Bug]: "
5
+ labels: bug
6
+ assignees: ""
7
+ ---
8
+
9
+ **Describe the bug**
10
+ A clear and concise description of what the bug is.
11
+
12
+ **To Reproduce**
13
+ Steps to reproduce the behavior:
14
+
15
+ **Expected behavior**
16
+ A clear and concise description of what you expected to happen.
17
+
18
+ **Environment (please complete the following information):**
19
+
20
+ - OS: [e.g. Windows 11, macOS Sequoia]
21
+ - Python version: [e.g. 3.13.1]
22
+ - Related module versions if applicable: [e.g. ortools=9.15.6755]
23
+
24
+ **Additional context**
25
+ Add any other context about the problem here.
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for this project
4
+ title: ""
5
+ labels: enhancement
6
+ assignees: ""
7
+ ---
8
+
9
+ **Is your feature request related to a problem? Please describe.**
10
+ A clear and concise description of what the problem is.
11
+
12
+ **Describe the feature you'd like**
13
+ A clear and concise description of what you want to happen.
14
+
15
+ **Additional context**
16
+ Add any other context or screenshots about the feature request here.
@@ -0,0 +1,11 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "uv"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+ open-pull-requests-limit: 5
8
+ - package-ecosystem: "github-actions"
9
+ directory: "/"
10
+ schedule:
11
+ interval: "weekly"
@@ -0,0 +1,16 @@
1
+ Before submitting, please check the following:
2
+
3
+ - Make sure you have tests for the new code and that tests pass (run `uv run --group dev pytest`)
4
+ - Format added code by `uv run --group dev ruff format`
5
+ - Run linting by `uv run --group dev ruff check`
6
+ - Type check by `uv run --group dev mypy` and `uv run --group dev pyright`
7
+ - Make sure the checks (GitHub Actions) pass.
8
+ - Check that the docs compile without errors (run `uv run --extra docs sphinx-build -W docs docs/_build/html` after `uv sync --extra docs`.)
9
+
10
+ Then, please fill in below:
11
+
12
+ **Context (if applicable):**
13
+
14
+ **Description of the change:**
15
+
16
+ **Related issue:**
@@ -0,0 +1,31 @@
1
+ name: coverage
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ workflow_dispatch:
9
+
10
+ permissions:
11
+ contents: read
12
+
13
+ jobs:
14
+ coverage:
15
+ runs-on: ubuntu-latest
16
+
17
+ steps:
18
+ - uses: actions/checkout@v7
19
+
20
+ - uses: actions/setup-python@v6
21
+ with:
22
+ python-version: "3.12"
23
+
24
+ - uses: astral-sh/setup-uv@v8.2.0
25
+ with:
26
+ version: "0.11.23"
27
+ enable-cache: true
28
+
29
+ - run: uv sync --locked --python 3.12 --group dev
30
+
31
+ - run: uv run --no-sync pytest -m "not cp_sat" --cov=humancompiler_scheduler --cov-report=term-missing --cov-report=xml --cov-branch
@@ -0,0 +1,53 @@
1
+ name: doc
2
+
3
+ on:
4
+ pull_request:
5
+ workflow_dispatch:
6
+
7
+ permissions:
8
+ contents: read
9
+
10
+ jobs:
11
+ check-doc:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v7
15
+
16
+ - uses: actions/setup-python@v6
17
+ with:
18
+ python-version: "3.12"
19
+
20
+ - uses: astral-sh/setup-uv@v8.2.0
21
+ with:
22
+ version: "0.11.23"
23
+ enable-cache: true
24
+
25
+ - run: uv sync --locked --python 3.12 --extra docs
26
+
27
+ - name: Make docs
28
+ run: uv run --no-sync sphinx-build -W docs docs/_build/html
29
+
30
+ - name: Save docs
31
+ uses: actions/upload-artifact@v7
32
+ with:
33
+ name: html-docs
34
+ path: docs/_build/html
35
+
36
+ lint-text:
37
+ runs-on: ubuntu-latest
38
+ steps:
39
+ - uses: actions/checkout@v7
40
+
41
+ - uses: actions/setup-python@v6
42
+ with:
43
+ python-version: "3.12"
44
+
45
+ - uses: astral-sh/setup-uv@v8.2.0
46
+ with:
47
+ version: "0.11.23"
48
+ enable-cache: true
49
+
50
+ - run: uv sync --locked --python 3.12 --group dev
51
+
52
+ - name: Run language-agnostic linters
53
+ run: uv run --no-sync pre-commit run --all-files
@@ -0,0 +1,54 @@
1
+ name: pytest
2
+
3
+ on:
4
+ pull_request:
5
+ workflow_dispatch:
6
+
7
+ permissions:
8
+ contents: read
9
+
10
+ jobs:
11
+ standard:
12
+ name: "Python ${{ matrix.python }} / ${{ matrix.os }}"
13
+ runs-on: ${{ matrix.os }}
14
+ strategy:
15
+ fail-fast: false
16
+ matrix:
17
+ os: ["ubuntu-latest", "windows-latest", "macos-latest"]
18
+ python: ["3.12"]
19
+
20
+ steps:
21
+ - uses: actions/checkout@v7
22
+
23
+ - uses: actions/setup-python@v6
24
+ with:
25
+ python-version: ${{ matrix.python }}
26
+
27
+ - uses: astral-sh/setup-uv@v8.2.0
28
+ with:
29
+ version: "0.11.23"
30
+ enable-cache: true
31
+
32
+ - run: uv sync --locked --python ${{ matrix.python }} --group dev
33
+
34
+ - run: uv run --no-sync pytest -m "not cp_sat"
35
+
36
+ cp-sat:
37
+ name: "CP-SAT / Python 3.12 / ubuntu-latest"
38
+ runs-on: ubuntu-latest
39
+
40
+ steps:
41
+ - uses: actions/checkout@v7
42
+
43
+ - uses: actions/setup-python@v6
44
+ with:
45
+ python-version: "3.12"
46
+
47
+ - uses: astral-sh/setup-uv@v8.2.0
48
+ with:
49
+ version: "0.11.23"
50
+ enable-cache: true
51
+
52
+ - run: uv sync --locked --python 3.12 --group dev --extra cp-sat
53
+
54
+ - run: uv run --no-sync pytest -m cp_sat
@@ -0,0 +1,110 @@
1
+ name: release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v[0-9]+.[0-9]+.[0-9]+"
7
+ workflow_dispatch:
8
+ inputs:
9
+ tag:
10
+ description: "Existing release tag, such as v0.1.0"
11
+ required: true
12
+ type: string
13
+
14
+ permissions:
15
+ contents: read
16
+
17
+ jobs:
18
+ build:
19
+ runs-on: ubuntu-latest
20
+
21
+ steps:
22
+ - uses: actions/checkout@v7
23
+ with:
24
+ ref: ${{ github.event.inputs.tag || github.ref }}
25
+
26
+ - uses: actions/setup-python@v6
27
+ with:
28
+ python-version: "3.12"
29
+
30
+ - uses: astral-sh/setup-uv@v8.2.0
31
+ with:
32
+ version: "0.11.23"
33
+ enable-cache: true
34
+
35
+ - run: uv build
36
+
37
+ - name: Check distribution metadata
38
+ run: uvx --from twine twine check dist/*
39
+
40
+ - uses: actions/upload-artifact@v7
41
+ with:
42
+ name: python-package-distributions
43
+ path: dist/*
44
+
45
+ publish-pypi:
46
+ needs: build
47
+ runs-on: ubuntu-latest
48
+ environment:
49
+ name: pypi
50
+ url: https://pypi.org/p/humancompiler-scheduler
51
+ permissions:
52
+ id-token: write
53
+
54
+ steps:
55
+ - uses: actions/download-artifact@v8
56
+ with:
57
+ name: python-package-distributions
58
+ path: dist/
59
+
60
+ - name: Publish to PyPI
61
+ uses: pypa/gh-action-pypi-publish@release/v1
62
+
63
+ github-release:
64
+ needs: publish-pypi
65
+ runs-on: ubuntu-latest
66
+ permissions:
67
+ contents: write
68
+
69
+ steps:
70
+ - uses: actions/checkout@v7
71
+ with:
72
+ ref: ${{ github.event.inputs.tag || github.ref }}
73
+
74
+ - uses: actions/download-artifact@v8
75
+ with:
76
+ name: python-package-distributions
77
+ path: dist/
78
+
79
+ - name: Extract release notes from changelog
80
+ env:
81
+ RELEASE_TAG: ${{ github.event.inputs.tag || github.ref_name }}
82
+ run: |
83
+ python - <<'PY'
84
+ import os
85
+ import re
86
+ from pathlib import Path
87
+
88
+ version = os.environ["RELEASE_TAG"].removeprefix("refs/tags/").removeprefix("v")
89
+ changelog = Path("CHANGELOG.md").read_text(encoding="utf-8")
90
+ pattern = re.compile(
91
+ rf"^## \[{re.escape(version)}\].*?\n(?P<body>.*?)(?=^## \[|\Z)",
92
+ re.MULTILINE | re.DOTALL,
93
+ )
94
+ match = pattern.search(changelog)
95
+ if match is None:
96
+ raise SystemExit(f"CHANGELOG.md has no release notes for {version}")
97
+ body = match.group("body").strip()
98
+ if not body:
99
+ raise SystemExit(f"CHANGELOG.md release notes for {version} are empty")
100
+ Path("RELEASE_NOTES.md").write_text(body + "\n", encoding="utf-8")
101
+ PY
102
+
103
+ - name: Create GitHub Release
104
+ env:
105
+ GH_TOKEN: ${{ github.token }}
106
+ RELEASE_TAG: ${{ github.event.inputs.tag || github.ref_name }}
107
+ run: |
108
+ gh release create "$RELEASE_TAG" dist/* \
109
+ --title "$RELEASE_TAG" \
110
+ --notes-file RELEASE_NOTES.md
@@ -0,0 +1,30 @@
1
+ name: ruff
2
+
3
+ on:
4
+ pull_request:
5
+ workflow_dispatch:
6
+
7
+ permissions:
8
+ contents: read
9
+
10
+ jobs:
11
+ ruff:
12
+ runs-on: ubuntu-latest
13
+
14
+ steps:
15
+ - uses: actions/checkout@v7
16
+
17
+ - uses: actions/setup-python@v6
18
+ with:
19
+ python-version: "3.12"
20
+
21
+ - uses: astral-sh/setup-uv@v8.2.0
22
+ with:
23
+ version: "0.11.23"
24
+ enable-cache: true
25
+
26
+ - run: uv sync --locked --python 3.12 --group dev
27
+
28
+ - run: uv run --no-sync ruff check humancompiler_scheduler tests examples
29
+
30
+ - run: uv run --no-sync ruff format --check --diff
@@ -0,0 +1,35 @@
1
+ name: Type Checking
2
+
3
+ on:
4
+ pull_request:
5
+ workflow_dispatch:
6
+
7
+ permissions:
8
+ contents: read
9
+
10
+ jobs:
11
+ typecheck:
12
+ runs-on: ubuntu-latest
13
+ strategy:
14
+ matrix:
15
+ tool: [mypy, pyright]
16
+
17
+ steps:
18
+ - uses: actions/checkout@v7
19
+
20
+ - uses: actions/setup-python@v6
21
+ with:
22
+ python-version: "3.12"
23
+
24
+ - uses: actions/setup-node@v6
25
+ with:
26
+ node-version: "20"
27
+
28
+ - uses: astral-sh/setup-uv@v8.2.0
29
+ with:
30
+ version: "0.11.23"
31
+ enable-cache: true
32
+
33
+ - run: uv sync --locked --python 3.12 --group dev
34
+
35
+ - run: uv run --no-sync ${{ matrix.tool }}
@@ -0,0 +1,207 @@
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__/
@@ -0,0 +1,41 @@
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v6.0.0
4
+ hooks:
5
+ - id: check-added-large-files
6
+ - id: check-case-conflict
7
+ - id: check-yaml
8
+ - id: end-of-file-fixer
9
+ - id: fix-byte-order-marker
10
+ - id: mixed-line-ending
11
+ - id: trailing-whitespace
12
+
13
+ - repo: https://github.com/astral-sh/ruff-pre-commit
14
+ rev: v0.15.16
15
+ hooks:
16
+ - id: ruff
17
+ args: [--fix, --exit-non-zero-on-fix]
18
+ files: ^(humancompiler_scheduler|tests|examples)/.*\.py$
19
+ - id: ruff-format
20
+ files: ^(humancompiler_scheduler|tests|examples)/.*\.py$
21
+
22
+ - repo: local
23
+ hooks:
24
+ - id: mypy
25
+ name: mypy
26
+ entry: uv run --locked --group dev mypy
27
+ language: system
28
+ pass_filenames: false
29
+ types: [python]
30
+ - id: pyright
31
+ name: pyright
32
+ entry: uv run --locked --group dev pyright
33
+ language: system
34
+ pass_filenames: false
35
+ types: [python]
36
+ - id: pytest
37
+ name: pytest
38
+ entry: uv run --locked --group dev pytest -m "not cp_sat"
39
+ language: system
40
+ pass_filenames: false
41
+ types: [python]
@@ -0,0 +1,54 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ## [0.1.0] - 2026-06-22
11
+
12
+ ### Added
13
+
14
+ - Added the `humancompiler-scheduler` Python package with MIT license metadata,
15
+ typed package data, PyPI classifiers, project URLs, and Hatchling build
16
+ configuration.
17
+ - Added the `humancompiler_scheduler` import package, including the
18
+ `humancompiler_scheduler.human` namespace for HumanCompiler-oriented daily
19
+ scheduling.
20
+ - Added `plan_daily_schedule` and `optimize_human_daily_schedule` as stable
21
+ HumanCompiler adapter entry points.
22
+ - Added HumanCompiler daily scheduling fixtures, flexible availability input,
23
+ fixed events, rolling `now` trimming, solver config overrides, review reports,
24
+ and tuning examples.
25
+ - Added GitHub Actions workflows for Ruff, pytest, type checking, coverage,
26
+ documentation builds, Dependabot, and PyPI releases.
27
+ - Added a tag-triggered release workflow that builds distributions, validates
28
+ package metadata, publishes to PyPI with Trusted Publishing, and creates
29
+ GitHub release notes from this changelog.
30
+
31
+ ### Changed
32
+
33
+ - Renamed public package artifacts from legacy project naming to
34
+ HumanCompiler-oriented naming before the first PyPI release.
35
+ - Replaced review fixture task data with fully synthetic public demo data.
36
+ - Declared support for Python `>=3.10, <3.15`.
37
+ - Updated examples, tests, docs, and pre-commit hooks to use
38
+ `humancompiler_scheduler`.
39
+
40
+ ### Known Limitations
41
+
42
+ - Task splitting fields are parsed and preserved, but the solver still schedules
43
+ each task as a single block.
44
+ - Breaks are only represented when passed as fixed events; automatic break
45
+ insertion is not implemented yet.
46
+ - Rolling reschedule trims future availability with `now`, but frozen prior
47
+ plans and current-task interruptibility are not implemented yet.
48
+
49
+ ### Tests
50
+
51
+ - Added unit coverage for HumanCompiler daily scheduling models, fixture
52
+ loading, flexible availability compilation, review output, and solver
53
+ behavior.
54
+ - Added optional CP-SAT solver coverage under the `cp_sat` pytest marker.