-
Notifications
You must be signed in to change notification settings - Fork 25
/
pyproject.toml
143 lines (130 loc) · 3.36 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "deal"
authors = [{ name = "Gram", email = "[email protected]" }]
license = { text = "MIT" }
readme = "README.md"
dynamic = ["version", "description"]
requires-python = ">=3.8"
keywords = [
"deal",
"contracts",
"pre",
"post",
"invariant",
"decorators",
"validation",
"pythonic",
"functional",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Plugins",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
]
[project.urls]
Repository = "https://github.com/life4/deal"
Documentation = "https://deal.readthedocs.io/"
[project.optional-dependencies]
all = [
"astroid>=2.11.0", # for type inference in linter
"deal-solver>=0.1.2", # for formal verification
"hypothesis", # for property based testing
"pygments", # for syntax highlighting in exceptions
"typeguard>=3.0.0", # for runtime type checking in tests
"vaa>=0.2.1", # for supporting schemes (like marshmallow) as validators
]
integration = [ # for integration testing
"astroid>=2.11.0",
"deal-solver>=0.1.2",
"hypothesis",
"pygments",
"typeguard<4.0.0",
"vaa>=0.2.1",
"sphinx>=4.5.0",
"flake8",
"marshmallow",
]
test = [
"coverage[toml]",
"coverage-conditional-plugin",
"docstring-parser",
"pytest-cov",
"pytest",
"urllib3",
]
lint = [
"flake8",
"flake8-commas",
"flake8-quotes",
"mypy>=0.900",
"mypy_test>=0.1.1",
"isort",
"unify",
# copy-pasted "all" extra
"deal-solver>=0.1.2",
"hypothesis",
"pygments",
"typeguard<4.0.0",
]
docs = [
"m2r2>=0.3.3.post2", # markdown support in docstrings for sphinx
"myst-parser", # markdown support for dcs in sphinx
"sphinx==7.*", # documentation
"sphinx-rtd-theme==2.*", # theme for documentation
]
[project.entry-points."flake8.extension"]
DEL = "deal.linter:Checker"
[tool.pytest.ini_options]
python_classes = ""
addopts = [
"--cov=deal",
"--cov-report=html",
"--cov-report=term-missing:skip-covered",
"--cov-fail-under=100",
]
[tool.coverage.run]
branch = true
omit = ["deal/linter/_template.py", "deal/mypy.py"]
plugins = ["coverage_conditional_plugin"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"except ImportError:",
"raise NotImplementedError",
" pass",
"if TYPE_CHECKING:",
"raise RuntimeError.+unreachable.+",
]
[tool.coverage.coverage_conditional_plugin.rules]
no-astroid = "is_installed('astroid')"
has-astroid = "not is_installed('astroid')"
[tool.mypy]
files = ["deal"]
python_version = "3.9"
plugins = ["deal.mypy"]
ignore_missing_imports = true
show_error_codes = true
allow_redefinition = true
check_untyped_defs = true
strict_equality = true
warn_redundant_casts = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = 'deal._imports'
ignore_errors = true
[tool.isort]
line_length = 90
combine_as_imports = true
balanced_wrapping = true
lines_after_imports = 2
skip = ".venvs/"
multi_line_output = 5
include_trailing_comma = true