Skip to content

Commit a05b6b0

Browse files
committed
Update project name to splitme.
1 parent 796c1c2 commit a05b6b0

File tree

107 files changed

+4623
-2269
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+4623
-2269
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
-vv \
5555
--tb=short \
5656
--durations=5 \
57-
--cov=src/splitme_ai \
57+
--cov=src/splitme \
5858
--cov-branch \
5959
--cov-fail-under=0 \
6060
--cov-report=term-missing:skip-covered \
@@ -153,7 +153,7 @@ jobs:
153153
if: success() && startsWith(github.ref, 'refs/tags/v')
154154
environment:
155155
name: pypi
156-
url: https://pypi.org/p/splitme-ai
156+
url: https://pypi.org/p/splitme
157157
permissions:
158158
id-token: write
159159

.gitignore

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,14 @@ ENV/
3131
.mypy_cache/
3232
.pytest_cache/
3333
.ruff_cache/
34-
.splitme-ai/
3534
.reports/
3635
notebooks/
3736
site/
37+
.continuerules
3838

39-
# wip
39+
# Splitme
40+
.splitme/
41+
docs/*.md
42+
docs/features/
4043
docs/integrations/
41-
docs/notes.md
42-
docs/roadmap.md
43-
tests/data/readme-ai.html
44+
src/splitme/ai/

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Eli Salamie
3+
Copyright (c) 2024 to present Splitme and individual contributors.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ SHELL := /bin/bash
55
MAKEFLAGS += --warn-undefined-variables
66
MAKEFLAGS += --no-builtin-rules
77

8+
PYPROJECT_TOML := pyproject.toml
9+
PYPI_VERSION := 0.1.11
810
PYTHON_VERSION := 3.11
9-
PYPROJECT := pyproject.toml
10-
TARGET := splitme_ai tests
11+
TARGET := splitme tests
1112
TARGET_TEST := tests
1213

1314

14-
# -- Clean Up ------------------------------------------------------------------
15+
# -- Clean ---------------------------
16+
1517

1618
.PHONY: clean
1719
clean: ## Clean build and virtual environment directories
@@ -21,30 +23,31 @@ clean: ## Clean build and virtual environment directories
2123
-find . -name "*.pyc" -type f -exec rm -f {} +
2224

2325

24-
# -- Dependencies ------------------------------------------------------------
26+
# -- Dev ---------------------------
27+
2528

2629
.PHONY: build-hatch
2730
build-hatch: ## Build the distribution package using hatch
2831
hatch build
29-
pip show splitme-ai
32+
pip show splitme
3033

3134
.PHONY: build
3235
build: ## Build the distribution package using uv
3336
uv build
34-
uv pip install dist/splitme_ai-0.1.0-py3-none-any.whl
37+
uv pip install dist/splitme-$(PYPI_VERSION)-py3-none-any.whl
3538

3639
.PHONY: install
3740
install: ## Install all dependencies from pyproject.toml
3841
uv sync --dev --group test --group docs --group lint --all-extras
3942

4043
.PHONY: lock
4144
lock: ## Lock dependencies declared in pyproject.toml
42-
uv pip compile pyproject.toml --all-extras
45+
uv pip compile $(PYPROJECT_TOML) --all-extras
4346

4447
.PHONY: requirements
4548
requirements: ## Generate requirements files from pyproject.toml
46-
uv pip compile pyproject.toml -o requirements.txtiu
47-
uv pip compile pyproject.toml --all-extras -o requirements-dev.txt
49+
uv pip compile $(PYPROJECT_TOML) -o requirements.txtiu
50+
uv pip compile $(PYPROJECT_TOML) --all-extras -o requirements-dev.txt
4851

4952
.PHONY: sync
5053
sync: ## Sync environment with pyproject.toml
@@ -59,16 +62,15 @@ venv: ## Create a virtual environment
5962
uv venv --python $(PYTHON_VERSION)
6063

6164

62-
# -- Documentation --------------------------------------------------------------
65+
# -- Docs ---------------------------
6366

6467
.PHONY: docs
6568
docs: ## Build documentation site using mkdocs
66-
cd docs && \
6769
uv run mkdocs build --clean
6870
uv run mkdocs serve
6971

7072

71-
# -- Linting ---------------------------------------------------------------
73+
# -- Lint ---------------------------
7274

7375
.PHONY: format-toml
7476
format-toml: ## Format TOML files using pyproject-fmt
@@ -96,26 +98,28 @@ typecheck-pyright: ## Type-check Python files using Pyright
9698
uv run pyright $(TARGET)
9799

98100

99-
# -- Testing -------------------------------------------------------------------
101+
# -- Tests ----------------------------
102+
100103

101104
.PHONY: test
102105
test: ## Run test suite using Pytest
103-
poetry run pytest $(TARGET_TEST) --config-file $(PYPROJECT)
106+
uv run pytest $(TARGET_TEST) --config-file $(PYPROJECT_TOML)
107+
104108

109+
# -- Utils ---------------------------
105110

106-
# -- Utilities ------------------------------------------------------------------
107111

108112
.PHONY: run-pypi
109113
run-pypi:
110-
uvx --isolated splitme-ai --split.i tests/data/readme-ai.md --split.settings.o .splitme-ai/pypi-h2/ --split.settings.hl "##"
111-
uvx --isolated splitme-ai --split.i tests/data/readme-ai.md --split.settings.o .splitme-ai/pypi-h3/ --split.settings.hl "###"
112-
uvx --isolated splitme-ai --split.i tests/data/readme-ai.md --split.settings.o .splitme-ai/pypi-h4/ --split.settings.hl "####"
114+
uvx --isolated splitme --split.i tests/data/markdown/readme-ai.md --split.o .splitme/pypi-h2/ --split.level "##"
115+
uvx --isolated splitme --split.i tests/data/markdown/readme-ai.md --split.o .splitme/pypi-h3/ --split.level "###"
116+
uvx --isolated splitme --split.i tests/data/markdown/readme-ai.md --split.o .splitme/pypi-h4/ --split.level "####"
113117

114118
.PHONY: run-splitter
115119
run-splitter: ## Run the main application
116-
uv run splitme-ai --split.i tests/data/readme-ai.md --s.settings.o .splitme-ai/test-docs-h2/ --s.settings.hl "##" --s.settings.mkdocs
117-
uv run splitme-ai --split.i tests/data/readme-ai.md --s.settings.o .splitme-ai/test-docs-h3/ --s.settings.hl "###"
118-
uv run splitme-ai --split.i tests/data/readme-ai.md --s.settings.o .splitme-ai/test-docs-h4/ --s.settings.hl "####"
120+
uv run splitme --split.i tests/data/markdown/readme-ai.md --split.o docs/examples/split-sections-h2 --split.level "##" --mkdocs.dir docs/examples/split-sections-h2
121+
uv run splitme --split.i tests/data/markdown/readme-ai.md --split.o docs/examples/split-sections-h3/ --split.level "###"
122+
uv run splitme --split.i tests/data/markdown/readme-ai.md --split.o docs/examples/split-sections-h4/ --split.level "####"
119123

120124
.PHONY: help
121125
help: ## Display this help

0 commit comments

Comments
 (0)