Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
105 lines (95 loc) · 3.26 KB
/
Copy pathpyproject.toml
File metadata and controls
105 lines (95 loc) · 3.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# The installable coding-study distribution: the `cstudy` CLI from cli/src with the content bundled
# (docs/specs/installation-and-workspaces.md#install). The CLI's lint, type and test settings live
# in cli/ (ruff.toml, pyrightconfig.json, pytest.ini, .importlinter).
[project]
name = "coding-study"
version = "0.54.2"
description = "Free study and interview prep for engineers: guides, problems graded by real tests, and timed mock interviews"
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.13"
dependencies = [
"jsonschema>=4.26",
"markdown-it-py>=4.2",
"Pygments>=2.21",
"pyyaml>=6.0",
"rich>=15.0",
"starlette>=1.10",
"tomlkit>=0.15",
"typer>=0.27",
"uvicorn>=0.54",
"watchfiles>=1.1",
"wsproto==1.3.2",
]
[project.scripts]
cstudy = "coding_study.entrypoints.launcher:main"
[dependency-groups]
browser = [
"axe-playwright-python>=0.1.8",
"playwright>=1.58",
]
dev = [
"httpx2>=2.16",
"hypothesis>=6.170.9",
"import-linter>=2.15",
"pyright>=1.1.414",
"pytest>=9.1",
"pytest-xdist>=3.8",
"python-semantic-release>=10.7",
"ruff>=0.17",
"types-jsonschema>=4.26",
"types-pyyaml>=6.0",
]
[build-system]
requires = ["hatchling>=1.27,<2"]
build-backend = "hatchling.build"
# Every bundled path lies inside the project root, so a wheel built from the sdist equals one
# built from the checkout. Build output and caches never ship.
[tool.hatch.build]
exclude = [
"**/node_modules",
"**/build",
"**/.gradle",
"**/.kotlin",
"**/.venv",
"**/__pycache__",
"**/.pytest_cache",
"**/.ruff_cache",
"**/target",
"runners/python/tests",
]
[tool.hatch.build.targets.sdist]
only-include = ["cli/src/coding_study", "problems", "guides", "user-docs", "runners", "schemas"]
[tool.hatch.build.targets.wheel]
only-include = ["cli/src/coding_study", "problems", "guides", "user-docs", "runners", "schemas"]
# An editable install (`uv run cstudy` in a checkout) imports the package from cli/src and finds no
# bundled content, so the checkout is the content root.
dev-mode-dirs = ["cli/src"]
[tool.hatch.build.targets.wheel.sources]
"cli/src/coding_study" = "coding_study"
"problems" = "coding_study/content/problems"
"guides" = "coding_study/content/guides"
"user-docs" = "coding_study/content/user-docs"
"runners" = "coding_study/content/runners"
"schemas" = "coding_study/content/schemas"
# Versioning (docs/specs/versioning.md). Run from the repository root:
# uv run semantic-release version
[tool.semantic_release]
version_toml = ["pyproject.toml:project.version"]
tag_format = "v{version}"
commit_parser = "conventional"
allow_zero_version = true
major_on_zero = false
commit_author = "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
commit_message = "chore(release): v{version} [skip ci]\n\nAutomatically generated by python-semantic-release"
# Not a package build: `uv lock` refreshes the project's version in uv.lock, which
# `uv sync --locked` rejects when it is stale. Nothing is built, published or released.
build_command = "uv lock"
assets = ["uv.lock"]
[tool.semantic_release.branches.main]
match = "main"
prerelease = false
[tool.semantic_release.changelog.default_templates]
changelog_file = "CHANGELOG.md"
output_format = "md"