-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
88 lines (77 loc) · 2 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
[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.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
requires-python = ">=3.7"
dependencies = [
"importlib_metadata ; python_version < '3.8'",
"libcst",
"typer",
"typing_extensions>4 ; python_version < '3.11'",
]
[project.optional-dependencies]
black = ["black"]
pygments = ["Pygments"]
ipython = ["ipython"]
[project.scripts]
reprex = "reprexlite.cli:app"
[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/"
[tool.black]
line-length = 99
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
| tests/assets
)/
'''
[tool.ruff]
line-length = 99
select = [
"E", # Pyflakes
"F", # Pycodestyle
"I", # isort
]
src = ["reprexlite", "tests"]
exclude = ["tests/assets"]
unfixable = ["F"]
[tool.ruff.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"
testpaths = ["tests"]
[tool.coverage.run]
source = ["reprexlite"]