txt2epub-cli 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 (75) hide show
  1. txt2epub_cli-0.1.0/.copier-answers.yml +24 -0
  2. txt2epub_cli-0.1.0/.editorconfig +16 -0
  3. txt2epub_cli-0.1.0/.github/dependabot.yml +15 -0
  4. txt2epub_cli-0.1.0/.github/workflows/ci.yaml +71 -0
  5. txt2epub_cli-0.1.0/.github/workflows/docs.yaml +60 -0
  6. txt2epub_cli-0.1.0/.github/workflows/publish-to-pypi.yaml +46 -0
  7. txt2epub_cli-0.1.0/.gitignore +358 -0
  8. txt2epub_cli-0.1.0/.pre-commit-config.yaml +41 -0
  9. txt2epub_cli-0.1.0/AGENTS.md +85 -0
  10. txt2epub_cli-0.1.0/CHANGELOG.md +32 -0
  11. txt2epub_cli-0.1.0/LICENSE +232 -0
  12. txt2epub_cli-0.1.0/PKG-INFO +325 -0
  13. txt2epub_cli-0.1.0/README.md +302 -0
  14. txt2epub_cli-0.1.0/docs/getting-started.md +126 -0
  15. txt2epub_cli-0.1.0/docs/getting-started.zh.md +123 -0
  16. txt2epub_cli-0.1.0/docs/index.md +46 -0
  17. txt2epub_cli-0.1.0/docs/index.zh.md +44 -0
  18. txt2epub_cli-0.1.0/justfile +45 -0
  19. txt2epub_cli-0.1.0/mkdocs.yaml +54 -0
  20. txt2epub_cli-0.1.0/pyproject.toml +66 -0
  21. txt2epub_cli-0.1.0/ruff.toml +79 -0
  22. txt2epub_cli-0.1.0/src/txt2epub_cli/__init__.py +10 -0
  23. txt2epub_cli-0.1.0/src/txt2epub_cli/__main__.py +7 -0
  24. txt2epub_cli-0.1.0/src/txt2epub_cli/candidates.py +523 -0
  25. txt2epub_cli-0.1.0/src/txt2epub_cli/cli.py +355 -0
  26. txt2epub_cli-0.1.0/src/txt2epub_cli/coverage.py +110 -0
  27. txt2epub_cli-0.1.0/src/txt2epub_cli/dedupe.py +387 -0
  28. txt2epub_cli-0.1.0/src/txt2epub_cli/encoding.py +147 -0
  29. txt2epub_cli-0.1.0/src/txt2epub_cli/epub.py +400 -0
  30. txt2epub_cli-0.1.0/src/txt2epub_cli/hierarchy.py +75 -0
  31. txt2epub_cli-0.1.0/src/txt2epub_cli/ledger.py +28 -0
  32. txt2epub_cli-0.1.0/src/txt2epub_cli/model.py +188 -0
  33. txt2epub_cli-0.1.0/src/txt2epub_cli/noise.py +25 -0
  34. txt2epub_cli-0.1.0/src/txt2epub_cli/normalize.py +107 -0
  35. txt2epub_cli-0.1.0/src/txt2epub_cli/parser.py +863 -0
  36. txt2epub_cli-0.1.0/src/txt2epub_cli/report.py +164 -0
  37. txt2epub_cli-0.1.0/src/txt2epub_cli/rules.py +360 -0
  38. txt2epub_cli-0.1.0/src/txt2epub_cli/templates/container.xml +6 -0
  39. txt2epub_cli-0.1.0/src/txt2epub_cli/templates/content.opf +15 -0
  40. txt2epub_cli-0.1.0/src/txt2epub_cli/templates/nav.xhtml +17 -0
  41. txt2epub_cli-0.1.0/src/txt2epub_cli/templates/style.css +18 -0
  42. txt2epub_cli-0.1.0/src/txt2epub_cli/templates/toc.ncx +15 -0
  43. txt2epub_cli-0.1.0/src/txt2epub_cli/toc.py +99 -0
  44. txt2epub_cli-0.1.0/tests/conftest.py +12 -0
  45. txt2epub_cli-0.1.0/tests/fixtures/txt/README.md +26 -0
  46. txt2epub_cli-0.1.0/tests/fixtures/txt/combined_prefix.txt +11 -0
  47. txt2epub_cli-0.1.0/tests/fixtures/txt/combined_volume_special.txt +6 -0
  48. txt2epub_cli-0.1.0/tests/fixtures/txt/duplicates_noise.txt +8 -0
  49. txt2epub_cli-0.1.0/tests/fixtures/txt/false_positives.txt +6 -0
  50. txt2epub_cli-0.1.0/tests/fixtures/txt/front_matter.txt +9 -0
  51. txt2epub_cli-0.1.0/tests/fixtures/txt/indented_headings.txt +11 -0
  52. txt2epub_cli-0.1.0/tests/fixtures/txt/multi_number.txt +8 -0
  53. txt2epub_cli-0.1.0/tests/fixtures/txt/no_separator.txt +6 -0
  54. txt2epub_cli-0.1.0/tests/fixtures/txt/simple_arabic.txt +9 -0
  55. txt2epub_cli-0.1.0/tests/fixtures/txt/simple_chinese.txt +9 -0
  56. txt2epub_cli-0.1.0/tests/fixtures/txt/special_sections.txt +22 -0
  57. txt2epub_cli-0.1.0/tests/fixtures/txt/toc_page.txt +12 -0
  58. txt2epub_cli-0.1.0/tests/fixtures/txt/volume_chapter.txt +13 -0
  59. txt2epub_cli-0.1.0/tests/fixtures/txt/volume_no_blank.txt +10 -0
  60. txt2epub_cli-0.1.0/tests/fixtures/txt/zero_padded.txt +8 -0
  61. txt2epub_cli-0.1.0/tests/golden/samples.json +140 -0
  62. txt2epub_cli-0.1.0/tests/integration/test_cli.py +160 -0
  63. txt2epub_cli-0.1.0/tests/integration/test_epub_fixtures.py +80 -0
  64. txt2epub_cli-0.1.0/tests/integration/test_golden.py +26 -0
  65. txt2epub_cli-0.1.0/tests/integration/test_parse_fixtures.py +312 -0
  66. txt2epub_cli-0.1.0/tests/local/test_samples.py +33 -0
  67. txt2epub_cli-0.1.0/tests/unit/test_candidates.py +323 -0
  68. txt2epub_cli-0.1.0/tests/unit/test_coverage.py +86 -0
  69. txt2epub_cli-0.1.0/tests/unit/test_dedupe.py +152 -0
  70. txt2epub_cli-0.1.0/tests/unit/test_encoding.py +195 -0
  71. txt2epub_cli-0.1.0/tests/unit/test_epub.py +581 -0
  72. txt2epub_cli-0.1.0/tests/unit/test_hierarchy.py +130 -0
  73. txt2epub_cli-0.1.0/tests/unit/test_normalize.py +162 -0
  74. txt2epub_cli-0.1.0/tests/unit/test_rules.py +292 -0
  75. txt2epub_cli-0.1.0/uv.lock +1151 -0
@@ -0,0 +1,24 @@
1
+ # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2
+ _commit: c0a9e80c5cf56885dd21619006eb5b98d5642024
3
+ _src_path: git@github.com:ak1ra-lab/copier-pyproject.git
4
+ author_email: git@ak1ra.xyz
5
+ author_name: ak1ra
6
+ copyright_date: '2026'
7
+ copyright_holder: ak1ra
8
+ copyright_license: GPL-3.0-only
9
+ default_branch: main
10
+ docs_hosting: custom-url
11
+ docs_site_url: ''
12
+ project_description: Auditable Chinese TXT to EPUB 3 converter with multi-level TOC
13
+ project_kind: cli
14
+ project_name: txt2epub
15
+ python_min_version: '3.11'
16
+ python_package_command_line_name: txt2epub
17
+ python_package_distribution_name: txt2epub-cli
18
+ python_package_import_name: txt2epub_cli
19
+ repository_name: txt2epub
20
+ repository_namespace: ak1ra-lab
21
+ repository_provider_host: github.com
22
+ repository_provider_kind: github
23
+ requires_python: '>=3.11'
24
+ with_ansible: false
@@ -0,0 +1,16 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ end_of_line = lf
6
+ indent_size = 4
7
+ indent_style = space
8
+ insert_final_newline = true
9
+ trim_trailing_whitespace = true
10
+
11
+ [*.{yml,yaml}]
12
+ indent_size = 2
13
+
14
+ [*.md]
15
+ indent_size = 2
16
+ trim_trailing_whitespace = false
@@ -0,0 +1,15 @@
1
+ ---
2
+ version: 2
3
+ updates:
4
+ - package-ecosystem: github-actions
5
+ directory: /
6
+ schedule:
7
+ interval: weekly
8
+ cooldown:
9
+ default-days: 7
10
+ - package-ecosystem: uv
11
+ directory: /
12
+ schedule:
13
+ interval: weekly
14
+ cooldown:
15
+ default-days: 7
@@ -0,0 +1,71 @@
1
+ ---
2
+ name: ci
3
+
4
+ on:
5
+ workflow_dispatch: ~
6
+ push:
7
+ branches:
8
+ - main
9
+ pull_request:
10
+
11
+ permissions:
12
+ contents: read
13
+
14
+ jobs:
15
+ lint:
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
19
+ with:
20
+ persist-credentials: false
21
+
22
+ - name: Install uv
23
+ uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
24
+
25
+ - name: Install the project
26
+ run: uv sync --locked --group dev
27
+
28
+ - name: Lint and format check
29
+ run: |
30
+ uv run ruff check src tests
31
+ uv run ruff format --check src tests
32
+
33
+ - name: Type check
34
+ run: uv run ty check src
35
+
36
+ test:
37
+ runs-on: ubuntu-latest
38
+ strategy:
39
+ fail-fast: false
40
+ matrix:
41
+ python-version: ["3.11", "3.12", "3.13", "3.14"]
42
+ env:
43
+ UV_PYTHON: ${{ matrix.python-version }}
44
+ steps:
45
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
46
+ with:
47
+ persist-credentials: false
48
+
49
+ - name: Install uv
50
+ uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
51
+
52
+ - name: Install the project
53
+ run: uv sync --locked --group dev
54
+
55
+ - name: Run tests
56
+ run: uv run pytest -v tests
57
+
58
+ build:
59
+ runs-on: ubuntu-latest
60
+ steps:
61
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
62
+ with:
63
+ fetch-depth: 0
64
+ fetch-tags: true
65
+ persist-credentials: false
66
+
67
+ - name: Install uv
68
+ uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
69
+
70
+ - name: Build distributions
71
+ run: uv build
@@ -0,0 +1,60 @@
1
+ ---
2
+ name: docs
3
+
4
+ on:
5
+ workflow_dispatch: ~
6
+ push:
7
+ branches:
8
+ - main
9
+ paths:
10
+ - "src/**"
11
+ - "docs/**"
12
+ - "README.md"
13
+ - "mkdocs.yaml"
14
+ - "pyproject.toml"
15
+ - "uv.lock"
16
+ - ".github/workflows/docs.yaml"
17
+
18
+ permissions:
19
+ contents: read
20
+ pages: write
21
+ id-token: write
22
+
23
+ concurrency:
24
+ group: pages
25
+ cancel-in-progress: false
26
+
27
+ jobs:
28
+ build:
29
+ runs-on: ubuntu-latest
30
+ steps:
31
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
32
+ with:
33
+ fetch-depth: 0
34
+ fetch-tags: true
35
+ persist-credentials: false
36
+
37
+ - name: Install uv
38
+ uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
39
+
40
+ - name: Install the project
41
+ run: uv sync --locked --group docs
42
+
43
+ - name: Build documentation
44
+ run: NO_MKDOCS_2_WARNING=1 uv run mkdocs build
45
+
46
+ - name: Upload Pages artifact
47
+ uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
48
+ with:
49
+ path: site
50
+
51
+ deploy:
52
+ needs: build
53
+ runs-on: ubuntu-latest
54
+ environment:
55
+ name: github-pages
56
+ url: ${{ steps.deployment.outputs.page_url }}
57
+ steps:
58
+ - name: Deploy to GitHub Pages
59
+ id: deployment
60
+ uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
@@ -0,0 +1,46 @@
1
+ ---
2
+ name: publish-to-pypi
3
+
4
+ on:
5
+ workflow_dispatch: ~
6
+ push:
7
+ tags:
8
+ - "v*"
9
+
10
+ permissions: {}
11
+
12
+ jobs:
13
+ build-n-push:
14
+ name: upload release to PyPI
15
+ runs-on: ubuntu-latest
16
+ environment:
17
+ name: pypi
18
+ url: https://pypi.org/project/txt2epub-cli/
19
+
20
+ permissions:
21
+ contents: read
22
+ id-token: write
23
+
24
+ steps:
25
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
26
+ with:
27
+ fetch-depth: 0
28
+ fetch-tags: true
29
+ persist-credentials: false
30
+
31
+ - name: Install uv
32
+ uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
33
+ with:
34
+ enable-cache: false
35
+
36
+ - name: Install the project
37
+ run: uv sync --locked --group dev
38
+
39
+ - name: Run tests
40
+ run: uv run pytest -v tests/
41
+
42
+ - name: Build a binary wheel and a source tarball
43
+ run: uv build -v
44
+
45
+ - name: Publish package distributions to PyPI
46
+ uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
@@ -0,0 +1,358 @@
1
+ # https://github.com/github/gitignore/blob/main/Global/Archives.gitignore
2
+ # It's better to unpack these files and commit the raw source because
3
+ # git has its own built in compression methods.
4
+ *.7z
5
+ *.jar
6
+ *.rar
7
+ *.zip
8
+ *.gz
9
+ *.gzip
10
+ *.tgz
11
+ *.bzip
12
+ *.bzip2
13
+ *.bz2
14
+ *.xz
15
+ *.lzma
16
+ *.cab
17
+ *.xar
18
+ *.zst
19
+ *.tzst
20
+
21
+ # Packing-only formats
22
+ *.iso
23
+ *.tar
24
+
25
+ # Package management formats
26
+ *.dmg
27
+ *.xpi
28
+ *.gem
29
+ *.egg
30
+ *.deb
31
+ *.rpm
32
+ *.msi
33
+ *.msm
34
+ *.msp
35
+ *.txz
36
+
37
+ # https://github.com/github/gitignore/blob/main/Global/Linux.gitignore
38
+ *~
39
+
40
+ # temporary files which can be created if a process still has a handle open of a deleted file
41
+ .fuse_hidden*
42
+
43
+ # Metadata left by Dolphin file manager, which comes with KDE Plasma
44
+ .directory
45
+
46
+ # Linux trash folder which might appear on any partition or disk
47
+ .Trash-*
48
+
49
+ # .nfs files are created when an open file is removed but is still being accessed
50
+ .nfs*
51
+
52
+ # Log files created by default by the nohup command
53
+ nohup.out
54
+
55
+ # https://github.com/github/gitignore/blob/main/Global/macOS.gitignore
56
+ # General
57
+ .DS_Store
58
+ __MACOSX/
59
+ .AppleDouble
60
+ .LSOverride
61
+ Icon\[
62
+ ]
63
+
64
+ # Thumbnails
65
+ ._*
66
+
67
+ # Files that might appear in the root of a volume
68
+ .DocumentRevisions-V100
69
+ .fseventsd
70
+ .Spotlight-V100
71
+ .TemporaryItems
72
+ .Trashes
73
+ .VolumeIcon.icns
74
+ .com.apple.timemachine.donotpresent
75
+
76
+ # Directories potentially created on remote AFP share
77
+ .AppleDB
78
+ .AppleDesktop
79
+ Network Trash Folder
80
+ Temporary Items
81
+ .apdisk
82
+
83
+ # https://github.com/github/gitignore/blob/main/Global/Windows.gitignore
84
+ # Windows thumbnail cache files
85
+ Thumbs.db
86
+ Thumbs.db:encryptable
87
+ ehthumbs.db
88
+ ehthumbs_vista.db
89
+
90
+ # Dump file
91
+ *.stackdump
92
+
93
+ # Folder config file
94
+ [Dd]esktop.ini
95
+
96
+ # Recycle Bin used on file shares
97
+ $RECYCLE.BIN/
98
+
99
+ # Windows Installer files
100
+ *.cab
101
+ *.msi
102
+ *.msix
103
+ *.msm
104
+ *.msp
105
+ *.exe
106
+
107
+ # Windows shortcuts
108
+ *.lnk
109
+
110
+ # https://github.com/github/gitignore/blob/main/Python.gitignore
111
+ # Byte-compiled / optimized / DLL files
112
+ __pycache__/
113
+ *.py[codz]
114
+ *$py.class
115
+
116
+ # C extensions
117
+ *.so
118
+
119
+ # Distribution / packaging
120
+ .Python
121
+ build/
122
+ develop-eggs/
123
+ dist/
124
+ downloads/
125
+ eggs/
126
+ .eggs/
127
+ lib/
128
+ lib64/
129
+ parts/
130
+ sdist/
131
+ var/
132
+ wheels/
133
+ share/python-wheels/
134
+ *.egg-info/
135
+ .installed.cfg
136
+ *.egg
137
+ MANIFEST
138
+
139
+ # PyInstaller
140
+ # Usually these files are written by a python script from a template
141
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
142
+ *.manifest
143
+ *.spec
144
+
145
+ # Installer logs
146
+ pip-log.txt
147
+ pip-delete-this-directory.txt
148
+
149
+ # Unit test / coverage reports
150
+ htmlcov/
151
+ .tox/
152
+ .nox/
153
+ .coverage
154
+ .coverage.*
155
+ .cache
156
+ nosetests.xml
157
+ coverage.xml
158
+ *.cover
159
+ *.py.cover
160
+ .hypothesis/
161
+ .pytest_cache/
162
+ cover/
163
+
164
+ # Translations
165
+ *.mo
166
+ *.pot
167
+
168
+ # Django stuff:
169
+ *.log
170
+ local_settings.py
171
+ db.sqlite3
172
+ db.sqlite3-journal
173
+
174
+ # Flask stuff:
175
+ instance/
176
+ .webassets-cache
177
+
178
+ # Scrapy stuff:
179
+ .scrapy
180
+
181
+ # Sphinx documentation
182
+ docs/_build/
183
+
184
+ # PyBuilder
185
+ .pybuilder/
186
+ target/
187
+
188
+ # Jupyter Notebook
189
+ .ipynb_checkpoints
190
+
191
+ # IPython
192
+ profile_default/
193
+ ipython_config.py
194
+
195
+ # pyenv
196
+ # For a library or package, you might want to ignore these files since the code is
197
+ # intended to run in multiple environments; otherwise, check them in:
198
+ .python-version
199
+
200
+ # pipenv
201
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
202
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
203
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
204
+ # install all needed dependencies.
205
+ # Pipfile.lock
206
+
207
+ # UV
208
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
209
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
210
+ # commonly ignored for libraries.
211
+ # uv.lock
212
+
213
+ # poetry
214
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
215
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
216
+ # commonly ignored for libraries.
217
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
218
+ # poetry.lock
219
+ # poetry.toml
220
+
221
+ # pdm
222
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
223
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
224
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
225
+ # pdm.lock
226
+ # pdm.toml
227
+ .pdm-python
228
+ .pdm-build/
229
+
230
+ # pixi
231
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
232
+ # pixi.lock
233
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
234
+ # in the .venv directory. It is recommended not to include this directory in version control.
235
+ .pixi
236
+
237
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
238
+ __pypackages__/
239
+
240
+ # Celery stuff
241
+ celerybeat-schedule
242
+ celerybeat.pid
243
+
244
+ # Redis
245
+ *.rdb
246
+ *.aof
247
+ *.pid
248
+
249
+ # RabbitMQ
250
+ mnesia/
251
+ rabbitmq/
252
+ rabbitmq-data/
253
+
254
+ # ActiveMQ
255
+ activemq-data/
256
+
257
+ # SageMath parsed files
258
+ *.sage.py
259
+
260
+ # Environments
261
+ .env
262
+ *.env
263
+ .envrc
264
+ .venv
265
+ env/
266
+ venv/
267
+ ENV/
268
+ env.bak/
269
+ venv.bak/
270
+ .uv-cache/
271
+
272
+ # Spyder project settings
273
+ .spyderproject
274
+ .spyproject
275
+
276
+ # Rope project settings
277
+ .ropeproject
278
+
279
+ # mkdocs documentation
280
+ /site
281
+
282
+ # mypy
283
+ .mypy_cache/
284
+ .dmypy.json
285
+ dmypy.json
286
+
287
+ # Pyre type checker
288
+ .pyre/
289
+
290
+ # pytype static type analyzer
291
+ .pytype/
292
+
293
+ # Cython debug symbols
294
+ cython_debug/
295
+
296
+ # PyCharm
297
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
298
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
299
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
300
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
301
+ # .idea/
302
+
303
+ # Abstra
304
+ # Abstra is an AI-powered process automation framework.
305
+ # Ignore directories containing user credentials, local state, and settings.
306
+ # Learn more at https://abstra.io/docs
307
+ .abstra/
308
+
309
+ # Visual Studio Code
310
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
311
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
312
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
313
+ # you could uncomment the following to ignore the entire vscode folder
314
+ .vscode/
315
+
316
+ # Ruff stuff:
317
+ .ruff_cache/
318
+
319
+ # PyPI configuration file
320
+ .pypirc
321
+
322
+ # Marimo
323
+ marimo/_static/
324
+ marimo/_lsp/
325
+ __marimo__/
326
+
327
+ # Streamlit
328
+ .streamlit/secrets.toml
329
+
330
+ # The default root path for Ansible config files on the controller
331
+ .ansible/
332
+
333
+ # Retry files generated for failed Ansible playbook runs
334
+ *.retry
335
+
336
+ # Ansible Molecule
337
+ .molecule/
338
+
339
+ # Ansible playbook project collections
340
+ collections/*
341
+ !collections/requirements.yml
342
+
343
+ # Ansible inventory (local/private)
344
+ inventory/*
345
+ !inventory/hosts.example.yml
346
+
347
+ # Ansible host_vars / group_vars
348
+ host_vars/
349
+ group_vars/
350
+
351
+ # General configuration file and examples folder
352
+ config/
353
+ credentials/
354
+ examples/
355
+
356
+ ## LLM
357
+ .agents/plans/
358
+ .agents/sessions/
@@ -0,0 +1,41 @@
1
+ ---
2
+ # See https://pre-commit.com for more information
3
+ # See https://pre-commit.com/hooks.html for more hooks
4
+ #
5
+ # Run `uv run pre-commit autoupdate` after init to bump hook revisions.
6
+ repos:
7
+ - repo: https://github.com/pre-commit/pre-commit-hooks
8
+ rev: v6.0.0
9
+ hooks:
10
+ - id: check-added-large-files
11
+ - id: check-json
12
+ - id: check-merge-conflict
13
+ - id: check-toml
14
+ - id: check-yaml
15
+ - id: detect-private-key
16
+ - id: end-of-file-fixer
17
+ - id: mixed-line-ending
18
+ args: [--fix=lf]
19
+ - id: trailing-whitespace
20
+
21
+ - repo: https://github.com/astral-sh/ruff-pre-commit
22
+ rev: v0.17.5
23
+ hooks:
24
+ - id: ruff-check
25
+ args: [--fix]
26
+ - id: ruff-format
27
+
28
+ - repo: https://github.com/astral-sh/uv-pre-commit
29
+ rev: 0.13.9
30
+ hooks:
31
+ - id: uv-lock
32
+
33
+ - repo: local
34
+ hooks:
35
+ - id: ty
36
+ name: ty
37
+ entry: uv run ty check
38
+ language: system
39
+ files: ^src/
40
+ types_or: [python, pyi]
41
+ require_serial: true