liblaf-cherries 0.0.2__tar.gz → 0.0.4__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 (70) hide show
  1. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/.github/copier/.copier-answers.python.yaml +2 -1
  2. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/.github/copier/.copier-answers.release.yaml +1 -1
  3. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/.github/copier/.copier-answers.shared.yaml +1 -1
  4. liblaf_cherries-0.0.4/.github/copier/mkdocs.yaml +143 -0
  5. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/.github/linters/.ruff.toml +1 -0
  6. liblaf_cherries-0.0.4/.github/release-please/.manifest.json +1 -0
  7. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/.github/release-please/config.json +4 -2
  8. liblaf_cherries-0.0.4/.github/workflows/shared-docs.yaml +45 -0
  9. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/CHANGELOG.md +21 -2
  10. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/PKG-INFO +2 -2
  11. liblaf_cherries-0.0.4/docs/SUMMARY.md +2 -0
  12. liblaf_cherries-0.0.4/docs/css/fonts.css +12 -0
  13. liblaf_cherries-0.0.4/docs/css/mkdocstrings/material.css +29 -0
  14. liblaf_cherries-0.0.4/docs/css/mkdocstrings/syntax-highlight-in-signatures.css +21 -0
  15. liblaf_cherries-0.0.4/docs/scripts/gen-ref-pages.py +52 -0
  16. liblaf_cherries-0.0.4/mkdocs.yaml +13 -0
  17. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/pyproject.toml +2 -2
  18. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/scripts/gen-init.sh +14 -5
  19. liblaf_cherries-0.0.2/.github/release-please/.manifest.json +0 -1
  20. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/.config/.restic-ignore +0 -0
  21. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/.config/resticprofile.toml +0 -0
  22. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/.cspell.json +0 -0
  23. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/.envrc +0 -0
  24. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/.github/linters/pyrightconfig.json +0 -0
  25. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/.github/renovate.json +0 -0
  26. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/.github/workflows/shared-mega-linter.yaml +0 -0
  27. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/.github/workflows/shared-pr.yaml +0 -0
  28. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/.github/workflows/shared-release-please.yaml +0 -0
  29. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/.github/workflows/shared-release.yaml +0 -0
  30. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/.github/workflows/shared-repo.yaml +0 -0
  31. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/.gitignore +0 -0
  32. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/.ruff.toml +0 -0
  33. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/.vscode/settings.json +0 -0
  34. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/Justfile +0 -0
  35. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/LICENSE +0 -0
  36. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/__builtins__.pyi +0 -0
  37. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/docs/README.md +0 -0
  38. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/exp/hello-cherries.py +0 -0
  39. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/pixi.lock +0 -0
  40. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/pyrightconfig.json +0 -0
  41. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/__init__.py +0 -0
  42. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/__init__.pyi +0 -0
  43. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/_config.py +0 -0
  44. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/_env.py +0 -0
  45. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/_experiment.py +0 -0
  46. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/_main.py +0 -0
  47. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/_start.py +0 -0
  48. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/git/__init__.py +0 -0
  49. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/git/__init__.pyi +0 -0
  50. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/git/_commit.py +0 -0
  51. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/git/_entrypoint.py +0 -0
  52. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/git/_repo.py +0 -0
  53. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/git/github/__init__.py +0 -0
  54. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/git/github/__init__.pyi +0 -0
  55. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/git/github/_link.py +0 -0
  56. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/git/github/_repo.py +0 -0
  57. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/integration/__init__.py +0 -0
  58. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/integration/__init__.pyi +0 -0
  59. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/integration/_backend.py +0 -0
  60. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/integration/_factory.py +0 -0
  61. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/integration/_neptune.py +0 -0
  62. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/plugin/__init__.py +0 -0
  63. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/plugin/__init__.pyi +0 -0
  64. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/plugin/_abc.py +0 -0
  65. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/plugin/_default.py +0 -0
  66. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/plugin/_git.py +0 -0
  67. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/plugin/_logging.py +0 -0
  68. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/plugin/_restic.py +0 -0
  69. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/utils/__init__.py +0 -0
  70. {liblaf_cherries-0.0.2 → liblaf_cherries-0.0.4}/src/liblaf/cherries/utils/__init__.pyi +0 -0
@@ -1,7 +1,8 @@
1
1
  # This file is @generated by <https://github.com/liblaf/copier-python>.
2
2
  # DO NOT EDIT!
3
+ # -*- mode: yaml; -*-
3
4
  # prettier-ignore
4
- _commit: 11b97e3
5
+ _commit: 7fc0f8c
5
6
  _src_path: gh:liblaf/copier-python
6
7
  author: liblaf
7
8
  email: 30631553+liblaf@users.noreply.github.com
@@ -1,6 +1,6 @@
1
1
  # This file is @generated by <https://github.com/liblaf/copier-release>.
2
2
  # DO NOT EDIT!
3
3
  # prettier-ignore
4
- _commit: 34694b2
4
+ _commit: fe8e8b7
5
5
  _src_path: gh:liblaf/copier-release
6
6
  release_type: python
@@ -1,7 +1,7 @@
1
1
  # This file is @generated by <https://github.com/liblaf/copier-shared>.
2
2
  # DO NOT EDIT!
3
3
  # prettier-ignore
4
- _commit: 25684d3
4
+ _commit: 1caac5b
5
5
  _src_path: gh:liblaf/copier-share
6
6
  copyright_holder: liblaf
7
7
  license: MIT
@@ -0,0 +1,143 @@
1
+ # This file is @generated by <https://github.com/liblaf/copier-python>.
2
+ # DO NOT EDIT!
3
+ # -*- mode: yaml; -*-
4
+ # yaml-language-server: $schema=https://squidfunk.github.io/mkdocs-material/schema.json
5
+
6
+ site_name: "liblaf.cherries"
7
+ site_url:
8
+ !ENV [
9
+ READTHEDOCS_CANONICAL_URL,
10
+ SITE_URL,
11
+ "https://liblaf.github.io/cherries/",
12
+ ]
13
+ site_author: "liblaf"
14
+ repo_name: "liblaf/cherries"
15
+ repo_url: "https://github.com/liblaf/cherries"
16
+ edit_uri: blob/main/docs/
17
+
18
+ extra_css:
19
+ # - https://raw.githubusercontent.com/liblaf/copier-python/refs/heads/main/css/fonts.css
20
+ # - https://raw.githubusercontent.com/liblaf/copier-python/refs/heads/main/css/mkdocstrings/material.css
21
+ # - https://raw.githubusercontent.com/liblaf/copier-python/refs/heads/main/css/mkdocstrings/syntax-highlight-in-signatures.css
22
+ # I don't know why, but external CSS does not work.
23
+ - css/fonts.css
24
+ - css/mkdocstrings/material.css
25
+ - css/mkdocstrings/syntax-highlight-in-signatures.css
26
+
27
+ theme:
28
+ name: material
29
+ features:
30
+ - announce.dismiss
31
+ - content.action.edit
32
+ - content.action.view
33
+ - content.code.annotate
34
+ - content.code.copy
35
+ - content.code.select
36
+ - content.footnote.tooltips
37
+ - content.tabs.link
38
+ - content.tooltips
39
+ # - header.autohide
40
+ # - navigation.expand
41
+ # - navigation.footer
42
+ # - navigation.indexes
43
+ - navigation.instant
44
+ - navigation.instant.prefetch
45
+ - navigation.instant.progress
46
+ - navigation.path
47
+ # - navigation.prune
48
+ - navigation.sections
49
+ - navigation.tabs
50
+ - navigation.tabs.sticky
51
+ - navigation.top
52
+ - navigation.tracking
53
+ - search.highlight
54
+ - search.share
55
+ - search.suggest
56
+ - toc.follow
57
+ # - toc.integrate
58
+ palette:
59
+ - media: (prefers-color-scheme)
60
+ toggle:
61
+ icon: material/brightness-auto
62
+ name: Auto
63
+ - scheme: default
64
+ primary: teal
65
+ accent: purple
66
+ media: "(prefers-color-scheme: light)"
67
+ toggle:
68
+ icon: material/weather-sunny
69
+ name: Light Mode
70
+ - scheme: slate
71
+ primary: black
72
+ accent: lime
73
+ media: "(prefers-color-scheme: dark)"
74
+ toggle:
75
+ icon: material/weather-night
76
+ name: Dark Mode
77
+
78
+ plugins:
79
+ # Built-in plugins
80
+ # optimize: # sponsors only
81
+ search:
82
+ social:
83
+ # typeset: # sponsors only
84
+ # External plugins, schema provided by us
85
+ gen-files:
86
+ scripts:
87
+ - docs/scripts/gen-ref-pages.py
88
+ git-committers:
89
+ enabled: !ENV [READTHEDOCS, CI, false]
90
+ repository: "liblaf/cherries"
91
+ branch: main
92
+ literate-nav:
93
+ section-index:
94
+ # External plugins, schema provided by our community
95
+ git-revision-date-localized:
96
+ enable_creation_date: true
97
+ mkdocstrings:
98
+ default_handler: python
99
+ enable_inventory: true
100
+ handlers:
101
+ python:
102
+ import:
103
+ - https://docs.python.org/3/objects.inv
104
+ options:
105
+ # General
106
+ # Headings
107
+ show_symbol_type_heading: true
108
+ show_symbol_type_toc: true
109
+ # Members
110
+ inherited_members: true
111
+ filters:
112
+ - "!^_[^_]"
113
+ - "!__all__"
114
+ summary: true
115
+ # Docstrings
116
+ docstring_style: google
117
+ docstring_options:
118
+ ignore_init_summary: true
119
+ docstring_section_style: list
120
+ merge_init_into_class: true
121
+ show_if_no_docstring: true
122
+ # Signatures
123
+ show_signature_annotations: true
124
+ separate_signature: true
125
+ signature_crossrefs: true
126
+ # External plugins, schema not provided
127
+ autorefs:
128
+
129
+ markdown_extensions:
130
+ admonition:
131
+ md_in_html:
132
+ mdx_truly_sane_lists:
133
+ pymdownx.details:
134
+ pymdownx.snippets:
135
+ pymdownx.superfences:
136
+ pymdownx.tabbed:
137
+ alternate_style: true
138
+ toc:
139
+ permalink: ¤
140
+
141
+ watch:
142
+ - docs/
143
+ - src/
@@ -3,6 +3,7 @@
3
3
  # DO NOT EDIT!
4
4
 
5
5
  builtins = ["ic"]
6
+ exclude = ["_version.py"]
6
7
  fix = true
7
8
  show-fixes = true
8
9
  target-version = "py312"
@@ -0,0 +1 @@
1
+ {".":"0.0.4"}
@@ -35,12 +35,14 @@
35
35
  {
36
36
  "type": "chore",
37
37
  "scope": "deps",
38
- "section": "⬆️ Dependencies"
38
+ "section": "⬆️ Dependencies",
39
+ "hidden": true
39
40
  },
40
41
  {
41
42
  "type": "chore",
42
43
  "scope": "deps-dev",
43
- "section": "⬆️ Dependencies"
44
+ "section": "⬆️ Dependencies",
45
+ "hidden": true
44
46
  },
45
47
  {
46
48
  "type": "fix",
@@ -0,0 +1,45 @@
1
+ # This file is @generated by <https://github.com/liblaf/copier-python>.
2
+ # DO NOT EDIT!
3
+
4
+ name: (Shared) Docs
5
+
6
+ on:
7
+ push:
8
+
9
+ jobs:
10
+ docs:
11
+ name: Docs
12
+ permissions:
13
+ contents: write
14
+ runs-on: ubuntu-latest
15
+ concurrency:
16
+ group: ${{ github.workflow }}-${{ github.ref }}-docs
17
+ cancel-in-progress: true
18
+ steps:
19
+ - name: Checkout
20
+ uses: actions/checkout@v4
21
+ with:
22
+ fetch-depth: 0
23
+ - if: hashFiles('pixi.lock') != ''
24
+ name: Setup Pixi
25
+ uses: prefix-dev/setup-pixi@v0
26
+ with:
27
+ run-install: true
28
+ activate-environment: true
29
+ locked: false
30
+ - if: hashFiles('uv.lock') != ''
31
+ name: Setup uv
32
+ uses: astral-sh/setup-uv@v5
33
+ - if: hashFiles('docs/scripts/prepare.sh') != ''
34
+ name: Prepare
35
+ run: docs/scripts/prepare.sh
36
+ - name: Build
37
+ run: mkdocs build
38
+ - name: Upload Artifacts
39
+ uses: actions/upload-artifact@v4
40
+ with:
41
+ name: docs
42
+ path: site/
43
+ - if: github.ref == 'refs/heads/main'
44
+ name: Deploy
45
+ run: mkdocs gh-deploy --force --no-history
@@ -1,6 +1,25 @@
1
1
  # Changelog
2
2
 
3
- ## [0.0.2](https://github.com/liblaf/cherries/compare/v0.0.1..v0.0.2) - 2025-02-03
3
+ ## [0.0.4](https://github.com/liblaf/cherries/compare/v0.0.3..v0.0.4) - 2025-02-23
4
+
5
+ ### ⬆️ Dependencies
6
+
7
+ - **deps:** update dependency liblaf-grapes to >=0.1.1,<0.1.2 (#12) - ([7167242](https://github.com/liblaf/cherries/commit/716724275eb08b04cb52d78f8145d86bdaef4ba9))
8
+
9
+ ### ❤️ New Contributors
10
+
11
+ - @liblaf made their first contribution
12
+ - @renovate[bot] made their first contribution in [#12](https://github.com/liblaf/cherries/pull/12)
13
+
14
+ ## [0.0.3](https://github.com/liblaf/cherries/compare/v0.0.2..v0.0.3) - 2025-02-17
15
+
16
+ ### ⬆️ Dependencies
17
+
18
+ - **deps:** update dependency liblaf-grapes to >=0.1.0,<0.1.1 (#11) - ([3578378](https://github.com/liblaf/cherries/commit/3578378ca5b0fe861bd72dfbe462fabbd1a4e978))
19
+ - **deps:** update dependency liblaf-grapes to >=0.0.5,<0.0.6 (#10) - ([ae48be8](https://github.com/liblaf/cherries/commit/ae48be80c7a17575dad2f1e2e876ad7abcd5480e))
20
+ - **deps:** update dependency liblaf-grapes to >=0.0.4,<0.0.5 (#8) - ([4dc1845](https://github.com/liblaf/cherries/commit/4dc18458b69222408d9889abd4609a957deddfdd))
21
+
22
+ ## [0.0.2](https://github.com/liblaf/cherries/compare/v0.0.1..v0.0.2) - 2025-02-04
4
23
 
5
24
  ### ⬆️ Dependencies
6
25
 
@@ -9,8 +28,8 @@
9
28
 
10
29
  ### ❤️ New Contributors
11
30
 
31
+ - @github-actions[bot] made their first contribution in [#6](https://github.com/liblaf/cherries/pull/6)
12
32
  - @renovate[bot] made their first contribution in [#7](https://github.com/liblaf/cherries/pull/7)
13
- - @liblaf made their first contribution
14
33
 
15
34
  ## [0.0.1](https://github.com/liblaf/cherries/compare/v0.0.0..v0.0.1) - 2025-01-19
16
35
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: liblaf-cherries
3
- Version: 0.0.2
3
+ Version: 0.0.4
4
4
  Summary: Add your description here
5
5
  Project-URL: Changelog, https://github.com/liblaf/cherries/blob/main/CHANGELOG.md
6
6
  Project-URL: Homepage, https://github.com/liblaf/cherries
@@ -14,7 +14,7 @@ Requires-Python: >=3.12
14
14
  Requires-Dist: comet-ml<4,>=3.47.6
15
15
  Requires-Dist: gitpython<4,>=3.1.44
16
16
  Requires-Dist: lazy-loader<0.5,>=0.4
17
- Requires-Dist: liblaf-grapes<0.0.4,>=0.0.3
17
+ Requires-Dist: liblaf-grapes<0.1.3,>=0.1.2
18
18
  Requires-Dist: loguru<0.8,>=0.7.3
19
19
  Requires-Dist: neptune<2,>=1.13.0
20
20
  Requires-Dist: pydantic-settings<3,>=2.7.1
@@ -0,0 +1,2 @@
1
+ - [HOME](README.md)
2
+ - [API Reference](api/)
@@ -0,0 +1,12 @@
1
+ /* This file is @generated by <https://github.com/liblaf/copier-python>.
2
+ DO NOT EDIT! */
3
+
4
+ /* https://squidfunk.github.io/mkdocs-material/setup/changing-the-fonts/ */
5
+ :root {
6
+ --md-text-font: "Roboto", "Verdana", "Arial", "Helvetica", sans-serif,
7
+ ui-sans-serif, system-ui, "Segoe UI Emoji", "Noto Color Emoji", emoji;
8
+ --md-code-font: "MonaspiceNe Nerd Font", "CaskaydiaCove Nerd Font",
9
+ "FiraCode Nerd Font", "Monaspace Neon", "Cascadia Code", "FiraCode",
10
+ "JetBrains Mono", ui-monospace, monospace, "Segoe UI Emoji",
11
+ "Noto Color Emoji", emoji;
12
+ }
@@ -0,0 +1,29 @@
1
+ /* This file is @generated by <https://github.com/liblaf/copier-python>.
2
+ DO NOT EDIT! */
3
+
4
+ /* https://mkdocstrings.github.io/python/usage/customization/#material */
5
+
6
+ /* Indentation. */
7
+ div.doc-contents:not(.first) {
8
+ padding-left: 25px;
9
+ border-left: 0.05rem solid var(--md-typeset-table-color);
10
+ }
11
+
12
+ /* Mark external links as such. */
13
+ a.external::after,
14
+ a.autorefs-external::after {
15
+ /* https://primer.style/octicons/arrow-up-right-24 */
16
+ mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.25 15.5a.75.75 0 00.75-.75v-9a.75.75 0 00-.75-.75h-9a.75.75 0 000 1.5h7.19L6.22 16.72a.75.75 0 101.06 1.06L17.5 7.56v7.19c0 .414.336.75.75.75z"></path></svg>');
17
+ content: " ";
18
+ display: inline-block;
19
+ vertical-align: middle;
20
+ position: relative;
21
+ height: 1em;
22
+ width: 1em;
23
+ background-color: currentcolor;
24
+ }
25
+
26
+ a.external:hover::after,
27
+ a.autorefs-external:hover::after {
28
+ background-color: var(--md-accent-fg-color);
29
+ }
@@ -0,0 +1,21 @@
1
+ /* This file is @generated by <https://github.com/liblaf/copier-python>.
2
+ DO NOT EDIT! */
3
+
4
+ /* https://mkdocstrings.github.io/python/usage/customization/#syntax-highlight-in-signatures */
5
+
6
+ /* Fancier color for operators such as * and |. */
7
+ .doc-signature .o {
8
+ color: var(--md-code-hl-special-color);
9
+ }
10
+
11
+ /* Fancier color for constants such as None, True, and False. */
12
+ .doc-signature .kc {
13
+ color: var(--md-code-hl-constant-color);
14
+ }
15
+
16
+ /* Fancier color for built-in types (only useful when cross-references are used). */
17
+ .doc-signature .n > a[href^="https://docs.python.org/"][href*="/functions.html#"],
18
+ .doc-signature .n > a[href^="https://docs.python.org/"][href*="/stdtypes.html#"]
19
+ {
20
+ color: var(--md-code-hl-constant-color);
21
+ }
@@ -0,0 +1,52 @@
1
+ # This file is @generated by <https://github.com/liblaf/copier-python>.
2
+ # DO NOT EDIT!
3
+ """Generate the code reference pages and navigation."""
4
+
5
+ import itertools
6
+ from pathlib import Path
7
+
8
+ import git
9
+ from mkdocs_gen_files.editor import FilesEditor
10
+ from mkdocs_gen_files.nav import Nav
11
+
12
+
13
+ def git_root() -> Path:
14
+ repo = git.Repo(search_parent_directories=True)
15
+ return Path(repo.working_dir)
16
+
17
+
18
+ def is_private(parts: tuple[str, ...]) -> bool:
19
+ return any(part.startswith("_") for part in parts)
20
+
21
+
22
+ def main() -> None:
23
+ # [Recipes - mkdocstrings](https://mkdocstrings.github.io/recipes/)
24
+ root: Path = git_root()
25
+ editor: FilesEditor = FilesEditor.current()
26
+ nav = Nav()
27
+ src_dir: Path = root / "src"
28
+ for path in sorted(src_dir.rglob("*.py")):
29
+ relative_path: Path = path.relative_to(src_dir)
30
+ doc_path: Path = relative_path.with_suffix(".md")
31
+ parts: tuple[str, ...] = relative_path.with_suffix("").parts
32
+ if parts[-1] == "__init__":
33
+ parts = parts[:-1]
34
+ doc_path = doc_path.with_name("README.md")
35
+ if is_private(parts):
36
+ continue
37
+ nav_parts: tuple[str, ...] = tuple(
38
+ itertools.accumulate(parts, lambda x, y: x + "." + y)
39
+ )
40
+ nav[nav_parts] = doc_path.as_posix()
41
+ full_doc_path = Path("api", doc_path)
42
+ with editor.open(full_doc_path.as_posix(), "w") as fd:
43
+ identifier: str = nav_parts[-1]
44
+ fd.write(f"""::: {identifier}""")
45
+ editor.set_edit_path(
46
+ full_doc_path.as_posix(), (".." / path.relative_to(root)).as_posix()
47
+ )
48
+ with editor.open("api/SUMMARY.md", "w") as nav_file:
49
+ nav_file.writelines(nav.build_literate_nav())
50
+
51
+
52
+ main()
@@ -0,0 +1,13 @@
1
+ # vim: syntax=yaml
2
+ # yaml-language-server: $schema=https://squidfunk.github.io/mkdocs-material/schema.json
3
+
4
+ INHERIT: .github/copier/mkdocs.yaml
5
+ site_name: "liblaf.cherries"
6
+ site_description: TODO
7
+
8
+ plugins:
9
+ mkdocstrings:
10
+ handlers:
11
+ python:
12
+ import:
13
+ - https://docs.python.org/3/objects.inv
@@ -16,7 +16,7 @@ dependencies = [
16
16
  "comet-ml>=3.47.6,<4",
17
17
  "gitpython>=3.1.44,<4",
18
18
  "lazy-loader>=0.4,<0.5",
19
- "liblaf-grapes>=0.0.3,<0.0.4",
19
+ "liblaf-grapes>=0.1.2,<0.1.3",
20
20
  "loguru>=0.7.3,<0.8",
21
21
  "neptune>=1.13.0,<2",
22
22
  "pydantic-settings>=2.7.1,<3",
@@ -28,7 +28,7 @@ license = "MIT"
28
28
  name = "liblaf-cherries"
29
29
  readme = "docs/README.md"
30
30
  requires-python = ">=3.12"
31
- version = "0.0.2"
31
+ version = "0.0.4"
32
32
 
33
33
  [project.urls]
34
34
  "Changelog" = "https://github.com/liblaf/cherries/blob/main/CHANGELOG.md"
@@ -5,12 +5,21 @@ set -o errexit
5
5
  set -o nounset
6
6
  set -o pipefail
7
7
 
8
+ CODE="import lazy_loader as lazy
9
+
10
+ __getattr__, __dir__, __all__ = lazy.attach_stub(__name__, __file__)"
11
+ N_LINES=$(echo "$CODE" | wc --lines)
12
+
8
13
  git_root=$(git rev-parse --show-toplevel)
9
14
  readarray -t files < <(fd --fixed-strings --type file '__init__.pyi' "$git_root")
10
15
  for file in "${files[@]}"; do
11
- cat > "$(dirname "$file")/__init__.py" <<- EOF
12
- import lazy_loader as lazy
13
-
14
- __getattr__, __dir__, __all__ = lazy.attach_stub(__name__, __file__)
15
- EOF
16
+ file="${file/%".pyi"/".py"}"
17
+ if [[ ! -f $file ]]; then
18
+ echo "$CODE" > "$file"
19
+ continue
20
+ fi
21
+ last_lines=$(tail --lines="$N_LINES" "$file")
22
+ if ! diff <(echo "$last_lines") <(echo "$CODE") &> /dev/null; then
23
+ echo "$CODE" >> "$file"
24
+ fi
16
25
  done
@@ -1 +0,0 @@
1
- {".":"0.0.2"}
File without changes
File without changes