Skip to content

Turn any technical book PDF into a Claude Code skill — ready to study, reference, and use while you work.

chore: add pyproject.toml (requires-python + ruff/pytest config) (#35)

Randerson Melville7a928fb0f384
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8341a36..9067182 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Added
+- **`pyproject.toml`** declaring `requires-python = ">=3.9"` and centralizing the
+ ruff/pytest config so `ruff check .` and `pytest` locally match CI without
+ passing flags by hand. Metadata only — no build backend or console scripts; the
+ tool stays CLI-first via `python3 scripts/extract.py`.
- Structure detection now recognizes Markdown/AsciiDoc ATX headings (`#`, `==`)
as chapters when no numeric "Chapter N" headings are present, fixing a
zero-chapter result for `.md`/`.adoc` sources. Headings inside fenced code
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000..e791df3
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,18 @@
+[project]
+name = "book-to-skill"
+version = "1.1.0"
+description = "Convert books and documents into structured, on-demand agent skills."
+readme = "README.md"
+requires-python = ">=3.9"
+license = { text = "MIT" }
+
+# Tooling config so `ruff check .` and `pytest` locally match CI without flags.
+[tool.ruff]
+target-version = "py39"
+
+[tool.ruff.lint]
+# High-value gate only: syntax errors (E9) + pyflakes (F). Style stays ungated.
+select = ["E9", "F"]
+
+[tool.pytest.ini_options]
+testpaths = ["tests"]