Changelog¶
All notable changes to this project will be documented in this file.
0.5.0¶
- Made four helpers public for packages built on
chrisjen:utilities.flatten_dict,utilities.label_path,utilities.listify_names, andworkshop.class_names. Their private names (such as_listify_names) still work. - Added
options.add_special_settingandoptions.is_special_setting, so that a package can add a section of settings that is not a worker (such as "feature_groups") without changingoptions._SPECIAL_SETTINGSitself.
0.4.2¶
- Added the
py.typedmarker so that type checkers use the type hints inchrisjen.
0.4.1¶
- Raised the minimum versions of the dependencies to the latest on PyPI:
bobbie0.3.1,camina0.2.4,holden0.2.6,miller0.2.3,nagata0.2.1, andwonka0.3.0. All of them now include thepy.typedmarker, somypychecks the code against their type hints - Fixed the type errors that
mypyfound with the typed dependencies.parametersare now typed withstrkeys (they are keyword arguments),Vertex.buildis typed to return an instance of the class it is called on, andIdea.workersis typed to returnMutableMappingsections (which it always did) Project.apply,Project.to_dot, andProject.to_mermaidraise aValueErrorif the project has no workflow,Project.applyskips the report ifreportisNone, andSummarylists no paths for a project without a workflow (each of these raised anAttributeErrorbefore)- Upgraded every package in
uv.lockto its latest version - Updated the
pre-commithooks toruff0.17.3,uv0.13.6, andpydoclint0.12.0
0.4.0¶
- Added a
conserve_memoryoption toContestandSurvey(and any design that mixes inComparator), so that a worker with many paths does not keep every path's result in memory until the end. A contest scores each result as soon as its path is applied and keeps only the best so far (resultsthen has only the winner), and a survey adds each result to a running total and keeps none. AddedComparator.each_path, which applies the paths one at a time without keeping their results;Comparator._observe, which a design can override to keep a summary of each result before it is dropped; andContest.scores, the score of each path. - Settings in the "general" section that are listed in
options._GENERAL_SETTINGS(for now onlyconserve_memory) now reach every node with a field of the same name, unless the node's own section sets it. - Added numbered names for techniques and steps. A name that ends in a number (such as "logit2", or "logit_2") and is not the name of a class itself is built with the class named without the number ("logit"), with its own settings and parameters (such as "logit2_parameters"). So one technique can be tried with several sets of parameters, as in "model_techniques = logit1, logit2, logit3".
- Updated to the
snickerdoodle0.5.0 template - Added support for Python 3.15
- Ran the tests on Linux, macOS, and Windows (the
ciAction only ran them on Linux) and uploaded their coverage to Codecov - Ran the
pre-commithooks once instead of in every test job, ran theciAction only on pushes tomainand pull requests, and only deployed the documentation frommain - Replaced the deprecated release Action with the GitHub CLI, which uses the
released version's entry in CHANGELOG.md as the release notes, and only made
releases from
mainafter the tests and linters pass - Added a coverage report page to the documentation and a coverage badge to the README
- Read the version from
__version__in__init__.pyinstead of repeating it inpyproject.toml, and used an SPDX license expression (PEP 639) - Made
dependabotupdate theuvdependencies and GitHub Actions weekly - Renamed the misnamed
,python-versionfile to.python-versionand stopped ignoring it - Added environment setup instructions to the contributing guide and fixed broken links in the README
0.3.0¶
- Renamed the method that every node writes from
implementtoapply. A subclass ofVertexnow writesapply, which is wrapped when the subclass is defined, so that a call to it still adds the node'sparametersto the keyword arguments (asapplydid when it calledimplement). A call to theapplyof a parent class throughsuper()is not wrapped again, so it gets its keyword arguments exactly as they are passed. Subclasses can override_call_applyto change what happens around everyapply. This is a breaking change: a subclass that wroteimplementmust rename it toapply.
0.2.1¶
- Updated to the
snickerdoodle0.4.0 template - Made
ruffprefer single quotes - Made
ruffignore boolean default positional arguments (FBT002) - Excluded
uv.lockfrom the large file check - Fixed typos in the contributing guide and noted that the project does not use a code formatter
0.2.0¶
- Rebuilt the core of
chrisjenonbobbie(settings),holden(workflow graphs),nagata(file management), andcamina(helpers). The previous modules depended on APIs that no longer exist and could not be imported. - Added
LibraryandGenre. Every subclass ofGenreis added tochrisjen.librarywhen it is defined, under its snake case name. Abstract subclasses (those that listabc.ABCamong their bases) form nested genres. Names in settings are found in the library, andLibrary.borrowfinds a class by name with fallbacks (for example, a worker's own class before the class of its design). Project.createloads settings into anIdea(abobbie.Settingswith properties for workers, steps, techniques, designs, criteria, and parameters), builds the workflow withchrisjen.workshop, applies it to an item, and generates aReport(Summaryby default). Its arguments after the settings are keyword-only.- Added the node types
Vertex,Technique,NullVertex,Step, andWorker. ATechniquehas animplementmethod or wraps a tool: any callable, or the import path of one (imported only when it is used). Each node builds itself from the settings withVertex.build, which passes settings that match its fields (such asmax_iterations) to its constructor. - Added the worker designs
Flow,Benchmark,Contest, andSurvey, andCriteriato score results. Workers areholden.Systemgraphs, so they can be exported withto_dotandto_mermaid. - Workflows are built the way they were in
simplify: each technique of a step is wrapped in aStepnode named "{technique}_{step}" (using aStepsubclass named after the step, if there is one), and aContestorSurveytries every combination of one technique from each step, with its own copies of the item and the nodes for each combination. Parameters can be set for a step ({step}_parameters) or for one technique in one step ({technique}_{step}_parameters). - Rewrote the README and documentation, with examples that are run by the unit tests.
- Removed
Architect,Manager,Engineer, and the other classes of the earlier design. - Moved to the
snickerdoodletemplate based onuvandhatchling, and maintained the Python dependencies with dependabot'suvecosystem.
0.1.4¶
* Converted to `snickerdoodle` template and started change tracking