-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
91 lines (81 loc) · 2.14 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
[build-system]
requires = [
"setuptools >= 61",
"setuptools_scm",
]
build-backend = "setuptools.build_meta"
# PEP 621: Storing project metadata in pyproject.toml
# https://peps.python.org/pep-0621/
[project]
name = "objectref"
description = "deal with object reference notations"
readme = "README.md"
authors = [
{ name = "Aaron Tsang" },
]
license = { text = "MIT" }
keywords = []
dynamic = ["version"]
requires-python = ">=3.7"
classifiers = [
# classifier list on https://pypi.org/classifiers/
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.7",
"Typing :: Typed",
]
# optional-dependencies is a table whose values are lists of PEP 508 strings
[project.optional-dependencies]
dev = [
"mypy >= 1.5.1",
"black >= 23.9.0",
"isort >= 5.12.0",
]
test = [
"pytest >= 7.4.2",
"coverage[toml] >= 6.4.4",
]
[project.urls]
Homepage = "https://github.com/tsangwpx/objectref"
Source = "https://github.com/tsangwpx/objectref"
[tool.setuptools.dynamic]
version = { attr = "objectref.__version__" }
[tool.setuptools.packages.find]
where = ["src"]
[tool.black]
line-length = 100
target-version = ["py37", "py38", "py39", "py310", "py311"]
[tool.isort]
line_length = 100
profile = "black"
[tool.mypy]
warn_unused_configs = true
python_version = "3.7"
check_untyped_defs = true
show_error_codes = true
warn_unused_ignores = true
no_implicit_optional = true
sqlite_cache = true
disallow_any_unimported = true
disallow_any_generics = true
disallow_subclassing_any = true
[tool.coverage.run]
relative_files = true
[tool.coverage.report]
exclude_lines = [
"\\bpragma: no cover\\b",
"^\\s*raise (AssertionError|NotImplementedError)\\b",
"^\\s*return (NotImplemented)\\b",
"^\\s*(assert True|pass|\\.\\.\\.)",
"^\\s*if TYPE_CHECKING:",
"^\\s*def __repr__",
]
omit = [
"tests/*"
]