-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathpyproject.toml
106 lines (91 loc) · 1.98 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
[project]
name = "plum-dispatch"
description="Multiple dispatch in Python"
authors=[
{name = "Wessel Bruinsma", email="[email protected]"},
]
license = {text= "MIT"}
readme = "README.md"
keywords = ["multiple dispatch"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Typing :: Typed",
]
dynamic = ["version"]
requires-python = ">=3.8"
dependencies = [
"beartype>=0.16.2",
"typing-extensions>=4.9.0",
"rich>=10.0"
]
[project.optional-dependencies]
dev = [
"numpy",
"pytest>=6",
"pytest-cov",
"coveralls",
"pre-commit",
"IPython",
"black==23.9.0",
"ghp-import",
"wheel",
"build",
"tox",
"jupyter-book",
"mypy",
"pyright>=1.1.331",
"ruff>=0.2.1",
"sybil",
]
[project.urls]
repository = "https://github.com/beartype/plum"
documentation = "https://beartype.github.io/plum"
[build-system]
requires = ["hatchling>=1.8.0", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch]
version.source = "vcs"
build.include = ["plum*"]
build.hooks.vcs.version-file = "plum/_version.py"
# Development tools
[tool.coverage]
run.branch = true
run.command_line = "-m pytest --verbose test"
run.source = ["plum"]
report.exclude_also = [
'\.\.\.',
'if TYPE_CHECKING:',
'if typing.TYPE_CHECKING:',
]
[tool.pytest.ini_options]
testpaths = ["tests/", "plum", "docs"]
addopts = [
"-ra",
"-p",
"no:doctest",
]
minversion = "6.0"
[tool.ruff]
src = ["plum"]
target-version = "py38"
line-length = 88
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"D410",
"E", "W", # pycodestyle
"F", # Pyflakes
"I", # isort
"SIM", # flake8-simplify
"UP", # pyupgrade
]
ignore = ["F811", "B018"]
[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = ["beartype"]
known-local-folder = ["plum"]
[tool.ruff.format]
docstring-code-format = true