-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
114 lines (101 loc) · 2.46 KB
/
pyproject.toml
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
106
107
108
109
110
111
112
113
114
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "reprexlite"
version = "1.0.0"
description = "Render reproducible examples of Python code for sharing."
readme = "README.md"
authors = [{ name = "Jay Qi", email = "[email protected]" }]
license = { file = "LICENSE" }
keywords = ["reprex", "reproducible examples"]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.9"
dependencies = [
"cyclopts>=3",
"libcst",
"platformdirs",
"typing_extensions>4 ; python_version < '3.11'",
]
[project.optional-dependencies]
black = ["black"]
pygments = ["Pygments"]
ipython = ["ipython"]
[project.scripts]
reprex = "reprexlite.cli:entrypoint"
[project.urls]
"Repository" = "https://github.com/jayqi/reprexlite"
"Documentation" = "https://jayqi.github.io/reprexlite/"
"Bug Tracker" = "https://github.com/jayqi/reprexlite/issues"
"Changelog" = "https://jayqi.github.io/reprexlite/stable/changelog/"
[dependency-groups]
dev = [
{ include-group = "lint" },
{ include-group = "docs" },
]
lint = [
"mypy[install-types]",
"ruff",
]
docs = [
"markdown-callouts",
"mkdocs",
"mkdocs-jupyter",
"mkdocs-macros-plugin",
"mkdocs-material>=9.5.23",
"mike",
"mkdocstrings[python]",
"mkdocstrings-python>=1.15.1",
"mdx-truly-sane-lists",
"py-markdown-table",
"typenames",
"vspect",
]
test = [
"pytest",
"coverage",
"pytest-cov",
"pytest-echo>=1.8.1",
"tqdm",
]
[tool.uv]
upgrade = true
resolution = "highest"
[tool.ruff]
line-length = 99
src = ["reprexlite", "tests"]
exclude = ["tests/assets"]
[tool.ruff.lint]
select = [
"E", # Pyflakes
"F", # Pycodestyle
"I", # isort
]
unfixable = ["F"]
[tool.ruff.lint.isort]
known-first-party = ["reprexlite"]
known-third-party = ["IPython"]
force-sort-within-sections = true
[tool.mypy]
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--cov=reprexlite --cov-report=term --cov-report=html --cov-report=xml --echo-version=*"
testpaths = ["tests"]
[tool.coverage.run]
source = ["reprexlite"]
[tool.coverage.paths]
source = [
"reprexlite/",
"*/site-packages/reprexlite/",
]